-
Notifications
You must be signed in to change notification settings - Fork 76
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: Module parse failed: Unexpected token (341:14) #21
Comments
I'm not an export with modules and webpack etc. but from what I read a module should include a transpiled version. It seems that this module (downloaded via npm) still needs to be transpiled. I did this to my loader
it compiles and loads now |
I have the same problem as you. In which part of your component do you add the code you mention. I've been looking for a solution for weeks, I appreciate your answer.
? |
Hello, Not sure if this issue was addressed at some point but while trying to use this library we run into errors when compiling. As it turns out not all Babel can compile the "spread" operator since is not yet part of the spec. We tried multiple Babel extensions, settings and plugins but none worked as expected the since it can all depend on the version of Babel, npm, node, framework, etc... and makes it even more complex for trial and error/debugging. We ended up forking this repo and replacing all the instances where the spread is used (with Object.assing) and that did the work (no need of any Babel plugins). It may be better this way up until some JS features are fully supported. Here is fork if anyone want to use it. https://github.com/carrollbradford/vue-pivottable |
I'm tried to use the module with my vuejs project.
I get the error below:
this is my loader?
The text was updated successfully, but these errors were encountered: