Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request to Update Node.js Version to 18.x.x or Higher for MongoDB Compatibility #62

Open
edisonprince opened this issue Nov 21, 2024 · 1 comment

Comments

@edisonprince
Copy link

Issue:

I am currently working with Nodebox (or Codesandbox) and facing issues due to the current Node.js version (16.x.x). It does not support certain features such as dns.promises.resolveSrv, which is needed for connecting to MongoDB clusters using the mongodb+srv:// connection string.

Request:

I would like to request an update to the Node.js runtime version to 18.x.x or higher to ensure compatibility with MongoDB's features that require dns.promises or similar APIs.

Additional Information:

  • Current Node.js version: 16.x.x
  • MongoDB version: 5.x.x
  • Code trying to run:
    const { MongoClient } = require('mongodb');
    const uri = 'mongodb+srv://<username>:<password>@cluster.mongodb.net';
    const client = new MongoClient(uri);
    await client.connect();
@DeMoorJasper
Copy link
Collaborator

Nodebox cannot support sockets because that's not supported by web browsers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants