WARNING in .//.4.10.2@express/lib/view.js
Critical dependencies:
50:48-69 the request of a dependency is an expression
@ .//.4.10.2@express/lib/view.js 50:48-69
WARNING in .//.0.1.13@bson-ext/ext/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./win32/x64/bson i n E:\blog\node_modules.0.1.13@bson-ext\ext
@ .//.0.1.13@bson-ext/ext/index.js 6:10-37
WARNING in .//.0.1.13@bson-ext/ext/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./win32/ia32/bson in E:\blog\node_modules.0.1.13@bson-ext\ext
@ .//.0.1.13@bson-ext/ext/index.js 8:10-38
WARNING in .//.0.1.12@encoding/lib/iconv-loader.js
Critical dependencies:
9:12-34 the request of a dependency is an expression
@ .//.0.1.12@encoding/lib/iconv-loader.js 9:12-34
WARNING in .//.1.2.1@bindings/bindings.js
Critical dependencies:
76:22-40 the request of a dependency is an expression
76:43-53 the request of a dependency is an expression
@ .//.1.2.1@bindings/bindings.js 76:22-40 76:43-53
WARNING in ./~/.1.2.1@bindings/README.md
Module parse failed: E:\blog\node_modules.1.2.1@bindings\README.md Unexpected t oken (2:3)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:3)
at Parser.pp$4.raise (E:\blog\node_modules.3.3.0@acorn\dist\acorn.js:2221:1 5)
at Parser.pp.unexpected (E:\blog\node_modules.3.3.0@acorn\dist\acorn.js:603 :10)
我用webpack打包生产环境老是报这种错误,我用babel-node去编译开发环境就不会报错,配置基本和你的webpack.config.prod的配置差不多