webpack配置构建环境问题汇总

环境:node 6.9.5  npm 3.10.10

 

问题一:Module build failed: TypeError: Path must be a string. Received undefined

解决办法:

1.node降低到v5.11.1 

2.升级babel-core^6.10.4

 

详细参考:

https://github.com/webpack/webpack/issues/2463

 

 

问题二:Module not found: Error: Cannot resolve module 'react/lib/ReactMount'

解决办法:

1.回滚react版本

2.移除loader里react-hot

详细参考:http://stackoverflow.com/questions/40652327/module-not-found-error-cannot-resolve-module-react-lib-reactmount

 

posted @ 2017-02-16 14:06  jewely  阅读(604)  评论(0编辑  收藏  举报