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
Issue? #3
Comments
When using module: {
rules: [
{
test: /\.vue$/,
loader: 'vue-loader',
},
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/
},
]
} You can see the config I worked with at: https://github.com/vuejs-templates/webpack-simple/blob/master/template/webpack.config.js#L11 To get babel to work, you need to include babel-core and babel-preset-es2015 Then create a
|
Hmm, So I think I need to invest some time in webpack and debug what's really happening. Anyway, thanks for your reply! |
Okay, I found my mistake - I excluded vue-loader for the node_modules -directory... Thanks for your help! |
Excellent! thanks for following up with your solution. I will close this issue now. |
Just after import I get this Error:
ERROR in ./~/vue-star-rating/src/star-rating.vue Module parse failed: .../node_modules/vue-star-rating/src/star-rating.vue Unexpected token (1:0) You may need an appropriate loader to handle this file type. | <template> | <div> | <div @mouseleave="resetRating" id="stars">
...imported in a project with a lot of other dependencies, all installed with npm, all included in package.json (using webpack and Vue 2.1.8 )
Can't see any error, do you have a hint?
The text was updated successfully, but these errors were encountered: