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.

You may need an appropriate loader to handle this file type.

See original GitHub issue

I have recently upgraded my React app with yarn upgrade and that broke my app with the following error.

./node_modules/@material-ui/core/TableSortLabel/TableSortLabel.js
Module parse failed: Unexpected token (72:21)
You may need an appropriate loader to handle this file type.
|
|     /* Styles applied to the icon component if `direction="desc"`. */
|     iconDirectionDesc
  • This is not a v0.x issue.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Your Environment 🌎

Tech Version
Material-UI v3.9.0
React 16.7.0
Browser Chrome
Babel 6.26.0

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
eps1loncommented, Jan 18, 2019

I am rookie in bug reporting, so created a repo to explain my problem. Please excuse me for that.

That’s actually perfect in this case. Oftentimes a snippet is enough to gauge where the issue is with a short snippet but for build related things a full repro is the gold standard.

0reactions
oliviertassinaricommented, Jan 18, 2019

I have tried yarn v1.10.1 and npm v5.6.0. No issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"You may need an appropriate loader to handle this file ...
js file is doing is importing react, but it seems like the 'babel-loader' is not working. I am using 'babel-loader' 6.0.0. javascript ·...
Read more >
You may need an appropriate loader to handle this file type
The “You may need an appropriate loader to handle this file type” error is encountered in the command prompt of Windows or Linux...
Read more >
Module parse failed: Unexpected token. You may need an ...
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. #996.
Read more >
You may need an appropriate loader to handle this file type ...
I 'm having a problem configuring Webpack for Typescript and React. After running the NPM script: webpack serves ./webpack/webpack.config.ts ...
Read more >
You might need an appropriate loader to handle the file ...
You may need an appropriate loader to handle this file type. | var tokenString = localStorage.getItem("token");. | var userToken = JSON.parse( ...
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