webpack-loader with object rest spread plugin fails parsing
See original GitHub issueWhen trying to run sucrase with the webpack-loader
and webpack-object-rest-spread-plugin
I get the following error:
ERROR in ./src/Main.jsx Module parse failed: this.applyPluginsBailResult is not a function You may need an appropriate loader to handle this file type. TypeError: this.applyPluginsBailResult is not a function
Versions used:
webpack: 4.8.3
sucrase: 2.2.0
@sucrase/webpack-loader: 1.0.2,
@sucrase/webpack-object-rest-spread-plugin: 1.0.0
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:7 (4 by maintainers)
Top Results From Across the Web
babel and eslint ERROR object-rest-spread(...) - One More Tech
error: Support for the experimental syntax 'objectRestSpread' isn't currently enabled · error Parsing error: Unexpected token ..(objectRestSpread).
Read more >16 - Stack Overflow
So I have been trying to setup React Js environment. I am facing the babel dependencies error. I know this ...
Read more >Open Source Acknowledgements - Spice.ai Docs
github.com/pkg/errors, https://github.com/pkg/errors/blob/master/LICENSE, BSD-2-Clause ... babel/plugin-proposal-object-rest-spread 7.12.13, MIT, ...
Read more >Click to download - TechDocs - Broadcom
... @babel/plugin-proposal-object-rest-spread ... @webassemblyjs/floating-point-hex-parser @webassemblyjs/helper-api-error @webassemblyjs/helper-buffer ...
Read more >Compare Versions | @pxwlab/next-katana-plugin | npm | Open ...
GHSA-76p3-8jx3-jpfqPrototype pollution in webpack loader-utils ... @babel/plugin-proposal-object-rest-spread 7.12.1 ... json-parse-better-errors 1.0.2.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, glad to hear! I’ll actually reopen to track the task of updating the docs and maybe adding a runtime check.
@iki Take a look at https://github.com/webpack/webpack/issues/5548#issuecomment-395032615 , 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.