-
Notifications
You must be signed in to change notification settings - Fork 916
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
使用ES2015报错 #131
Comments
你没给 js 文件配置 babel-loader 吧 |
@yyx990803 因为我刚学习使用这个,我的整个build目录都是用的这个项目的,没有改过。你说的配置是不是 {
test: /\.js$/,
loader: 'babel!eslint',
// make sure to exclude 3rd party code in node_modules
exclude: /node_modules/
} |
你的 Node 什么版本? |
@yyx990803 4.2.4,不能用吗 |
试试看把 |
@yyx990803 改了也不行,我因为刚接触这些管理工具,也捣鼓一天了,还是没弄出个所以然 |
我做了很多东西,现在好了,不知道是不是卸载了重装node,又或是把npm升级到3的原因。。谢谢 |
@ikarosu 我来补坑...今天遇到这个问题了.莫名其妙的..所有依赖都是一样的就是出错 结果在这个文件中 .babelrc |
我試過,把nodejs升級到最新版就可以了。。。。 |
npm使用build报错
我的
package.json
main.js
webpack配置是和这个项目一样的,只要用下面注释那两句就正常
The text was updated successfully, but these errors were encountered: