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

"Unexpected token" with webpack after version 3.10.0 #1181

Closed
mix359 opened this issue Apr 30, 2020 · 1 comment
Closed

"Unexpected token" with webpack after version 3.10.0 #1181

mix359 opened this issue Apr 30, 2020 · 1 comment

Comments

@mix359
Copy link

mix359 commented Apr 30, 2020

Describe the bug
Using the "Select.vue" component directly in my components I can't compile with webpack because of the error:
"Module parse failed: Unexpected token (26:32)" made by the ?. operator used in line 26 of the file "src/mixins/pointerScroll.js"
This change seam to be introduced with the MR #1160

I've checked something about that operator and at the moment it's seam is not currently fully supported by webpack without some workaround. (webpack/webpack#10227)

Can I suggest to not use that for the moment, until is fully supported by webpack?
Or at least make a mention somewhere about the package to be used in the package.json to make this work?

At the moment I will probably downgrade to a version < 3.10.0 to avoid the problem.

Thanks
Cheers Mix :)

@sagalbot
Copy link
Owner

Thanks for reporting! This is a bit strange because ?. isn't actually present in the compiled dist, just the source files. How are you loading the component?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants