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.

I’m fairly new to webpack and seem to have run into trouble when I’ve updated the package to 1.2.0. I usednpm install react-wordcloudand had no troubles before with version 1.1.1. On my webpack config, js and jsx files are using only babel-loaders. Am I missing a configuration on the project?

Babel settings

"babel-core": "^6.26.0",
"babel-eslint": "^8.1.2",
"babel-loader": "^7.1.1",
Module parse failed: Unexpected token (758:28)
You may need an appropriate loader to handle this file type.
|   words
| }) => {
|   const mergedCallbacks = { ...defaultCallbacks,
|     ...callbacks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

DingLiSimcommented, Mar 13, 2020

I’m not sure if it had something to do with the babel spread syntax? I’ve checked the babel updated version for the project and it seems like a highly likely cause?

chrisrzhoucommented, Apr 21, 2020

Hey @DingLiSim, not sure what the issue is you are facing. In the Codesandbox link you provided, seems like the wordcloud is rendering fine! Let me know if there’s some issue you are facing and have a Codesandbox that reproduces the error. Thanks. Closing the ticket for now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve this loader issue in React? - Stack Overflow
I took a look at the link and read up on loaders, but I got no idea what type of loader I need...
Read more >
Loader issue -
Hey team, Hope you guys help me out with this. Whenever someone is trying to give a star review, the loader.gif loads in...
Read more >
Issues · babel/babel-loader - GitHub
Issues list ; In lerna project, use exclude and include is not working. #955 opened on Oct 18 ; Error when try to...
Read more >
webpack-error-loader - npm
Webpack error/warning emitting loader. Latest version: 1.0.1, last published: 2 years ago. Start using webpack-error-loader in your project ...
Read more >
Class Loader Issues in Published Projects
Class Loader Issues in Published Projects. Careful inspection of the stack trace can provide you with helpful hints about Application Platform issues.
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 Post

No results found

github_iconTop Related Hashnode Post

No results found