You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That means if you install apollo-datasource-mongodb, then run npm prune --production, there's a chance that the mongodb package will be pruned and this package will error with:
Error: Cannot find module 'mongodb'
The text was updated successfully, but these errors were encountered:
edit:
I had mongoose which wanted mongodb@4.5.0 and mongodb-memory-server which wanted mongodb@^4.5.0, which resolved to v4.7.0. So when my build process ran npm prune, it deleted node_modules/mongodb as it should have and my error happened
In
/src/cache
,dataloader
andbson
are dependencies, butmongodb
is not:apollo-datasource-mongodb/src/cache.js
Lines 1 to 3 in 08e1c07
Current dependencies:
apollo-datasource-mongodb/package.json
Lines 19 to 26 in 5d8f93a
That means if you install apollo-datasource-mongodb, then run
npm prune --production
, there's a chance that themongodb
package will be pruned and this package will error with:The text was updated successfully, but these errors were encountered: