Native module support
Opened this issue · 0 comments
brodo commented
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...