-
Notifications
You must be signed in to change notification settings - Fork 143
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-loader with object rest spread plugin fails parsing #225
Comments
Thanks for reporting. Since you're on webpack 4, I think object rest/spread should actually work without I'll update the docs to say that |
Oh yeah, it works without. I just blindly assumed it was necessary. |
Thanks, glad to hear! I'll actually reopen to track the task of updating the docs and maybe adding a runtime check. |
@alangpierce Actually, I get the above error with webpack4, typescript and webpack-object-rest-spread-plugin. However, if I remove the spread plugin, I get error on the first spread operator:
|
@iki Take a look at webpack/webpack#5548 (comment) , that may have some pointers. I think there are unfortunately some node_modules issues where it's possible to be stuck on an old acorn even though webpack 4 should depend on a recent enough version that supports the syntax. The syntax works for me in webpack 4 with a fresh install, so maybe try reinstalling node_modules from scratch or regenerating your lockfile. |
@alangpierce thanks! updating acorn resolved that: webpack/webpack#5548 (comment) |
Cool, glad to hear. |
When trying to run sucrase with the
webpack-loader
andwebpack-object-rest-spread-plugin
I get the following error:Versions used:
The text was updated successfully, but these errors were encountered: