Skip to content
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

Can't load .vue after update babel to 6.0.0 #54

Closed
g0ne150 opened this issue Nov 1, 2015 · 2 comments
Closed

Can't load .vue after update babel to 6.0.0 #54

g0ne150 opened this issue Nov 1, 2015 · 2 comments

Comments

@g0ne150
Copy link

g0ne150 commented Nov 1, 2015

ERROR in .//babel-loader?optional[]=runtime&loose=all&nonStandard=false!.//vue-loader/lib/selector.js?type=script&index=0!./src/js/components/header/header.vue
Module build failed: ReferenceError: [BABEL] /Users/gaozepan/Documents/youmeiba/node_modules/vue-loader/lib/selector.js?type=script&index=0!/Users/gaozepan/Documents/youmeiba/src/js/components/header/header.vue: Unknown option: base.optional
at Logger.error (/Users/gaozepan/Documents/youmeiba/node_modules/babel-core/lib/transformation/file/logger.js:43:11)
at OptionManager.mergeOptions (/Users/gaozepan/Documents/youmeiba/node_modules/babel-core/lib/transformation/file/options/option-manager.js:244:18)
at OptionManager.init (/Users/gaozepan/Documents/youmeiba/node_modules/babel-core/lib/transformation/file/options/option-manager.js:395:10)
at File.initOptions (/Users/gaozepan/Documents/youmeiba/node_modules/babel-core/lib/transformation/file/index.js:191:75)
at new File (/Users/gaozepan/Documents/youmeiba/node_modules/babel-core/lib/transformation/file/index.js:122:22)
at Pipeline.transform (/Users/gaozepan/Documents/youmeiba/node_modules/babel-core/lib/transformation/pipeline.js:42:16)
at transpile (/Users/gaozepan/Documents/youmeiba/node_modules/babel-loader/index.js:12:22)
at Object.module.exports (/Users/gaozepan/Documents/youmeiba/node_modules/babel-loader/index.js:69:12)
@ ./src/js/components/header/header.vue 2:17-169

//package.json
{
"version": "1.0.0",
"main": "webpack.config.js",
"dependencies": {
"babel-loader": "^6.0.0",
"babel-runtime": "^6.0.14",
"css-loader": "^0.21.0",
"extract-text-webpack-plugin": "^0.8.2",
"file-loader": "^0.8.4",
"style-loader": "^0.13.0",
"url-loader": "^0.5.6",
"underscore": "^1.8.3",
"vue": "^1.0.3",
"vue-html-loader": "^1.0.0",
"vue-loader": "^6.0.1",
"webpack": "^1.12.2",
"vue-validator": "^1.4.4",
"vue-hot-reload-api": "^1.2.1"
},
"devDependencies": {
"babel-core": "^6.0.14",
"babel-loader": "^6.0.0",
"babel-preset-es2015": "^6.0.14"
},
"scripts": {
"test": "echo "Error: no test specified" && exit 1"
},
"author": "",
"license": "ISC",
"description": ""
}

@yyx990803
Copy link
Member

Babel 6.0 is a breaking release. vue-loader doesn't work with the new api yet.

@g0ne150
Copy link
Author

g0ne150 commented Nov 1, 2015

Thanks!

@g0ne150 g0ne150 closed this as completed Nov 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants