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

Native module support #221

Open
brodo opened this issue Feb 23, 2022 · 0 comments
Open

Native module support #221

brodo opened this issue Feb 23, 2022 · 0 comments

Comments

@brodo
Copy link

brodo commented Feb 23, 2022

Hi!
I'm trying to get mongodb working with NodeGui and used this repo as a starter. I get the following error:

WARNING in ./node_modules/mongodb/lib/bson.js 8:11-30
Module not found: Error: Can't resolve 'bson-ext' in '/path/to/repo/node_modules/mongodb/lib'
 @ ./node_modules/mongodb/lib/index.js 7:15-32 32:13-30
 @ ./src/Login.ts 14:18-36
 @ ./src/index.ts 4:16-34

WARNING in ./node_modules/mongodb/lib/deps.js 24:4-42
Module not found: Error: Can't resolve 'kerberos' in '/path/to/repo/node_modules/mongodb/lib'
 @ ./node_modules/mongodb/lib/index.js 94:13-30
 @ ./src/Login.ts 14:18-36
 @ ./src/index.ts 4:16-34

WARNING in ./node_modules/mongodb/lib/deps.js 30:4-38
Module not found: Error: Can't resolve 'snappy' in '/path/to/repo/node_modules/mongodb/lib'
 @ ./node_modules/mongodb/lib/index.js 94:13-30
 @ ./src/Login.ts 14:18-36
 @ ./src/index.ts 4:16-34

WARNING in ./node_modules/mongodb/lib/deps.js 32:79-109
Module not found: Error: Can't resolve 'snappy/package.json' in '/path/to/repo/node_modules/mongodb/lib'
 @ ./node_modules/mongodb/lib/index.js 94:13-30
 @ ./src/Login.ts 14:18-36
 @ ./src/index.ts 4:16-34

WARNING in ./node_modules/mongodb/lib/deps.js 47:4-34
Module not found: Error: Can't resolve 'aws4' in '/path/to/repo/node_modules/mongodb/lib'
 @ ./node_modules/mongodb/lib/index.js 94:13-30
 @ ./src/Login.ts 14:18-36
 @ ./src/index.ts 4:16-34

WARNING in ./node_modules/mongodb/lib/encrypter.js 91:38-74
Module not found: Error: Can't resolve 'mongodb-client-encryption' in '/path/to/repo/node_modules/mongodb/lib'
 @ ./node_modules/mongodb/lib/connection_string.js 11:20-42
 @ ./node_modules/mongodb/lib/mongo_client.js 6:28-58
 @ ./node_modules/mongodb/lib/index.js 22:23-48 100:21-46
 @ ./src/Login.ts 14:18-36
 @ ./src/index.ts 4:16-34

Does the provided webpack config work with native modules? There is a rule for it, but I'm unsure if it works...

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

1 participant