question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

webpack-loader with object rest spread plugin fails parsing

See original GitHub issue

When 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
alangpiercecommented, May 30, 2018

Thanks, glad to hear! I’ll actually reopen to track the task of updating the docs and maybe adding a runtime check.

1reaction
alangpiercecommented, Jun 6, 2018

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found