i have some problem to add mongodb, my git is:
https://github.com/yoavshtainer/NodeWebpackTest
my error is:
cannot find module './MongoDB'
i'm using windows 10 with vue-cli and webpack.
my package:
"dependencies": {
"mongodb": "^2.2.24",
"vue": "^2.1.10",
"vue-material": "^0.7.1",
"vue-resource": "^1.2.0",
"vue-router": "^2.2.0"
},
i check my package.json and mongo in it and try to change the path, but nothing works.
require('mongodb'), why are you giving it a relative path to thesrcdirectory - there is no mongodb in thesrcdirectory