-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
webpack 打包报错 #8
Comments
你打包报错信息是什么? |
ERROR in Entry module not found: Error: Can't resolve 'babel' in 'F:\react\build-a-hn-front-page' |
me too! |
你用的應該是 webpack 2, 這份文檔寫成的時候是 webpack 1 |
loader: 'babel-loader' 改成这样,打包成功 |
为什么打包的时候,提示这个错误呢 ERROR in ./app/app.js 然后后面还有一大段错误 |
确切的说webpack.config.js上我就改了一处,把loader:"babel"改成了loader:"babel-loader" |
这里的报错是因为教程中的配置是针对 webpack 1.x, 我会抽空更新至 webpack 2.x |
因为app.js在当前app的文件夹下。如果entry path书写为app/app.js
在app目录下打包的时候打包目录会被映射为xxx/app/app/app.js
所以entry path应该书写为./app.js
The text was updated successfully, but these errors were encountered: