javascript - how to solve the error that fs module is not found when used node.js -
this question has answer here:
i want use mongodb in app uses webpack , react,but has error:"module not found:error:can't resolve 'fs' in f:\nodespace\react\react-app\node_modules\mongo\lib\gridfs",then try use fs module in cmd system,and works,and try use fs module in app,it showes error: "module not found:error:can't resolve 'fs' in f:\nodespace\react\react-app\app".
it's appreciate can me solve it.
Comments
Post a Comment