You may need an appropriate loader to handle this file type.
See original GitHub issueWhen I try import like example:
import LineRipple from '@material/react-line-ripple';
And try use:
class Foo extends Components {
render() {
return(
<div>
<LineRipple />
...
</div>
)
}
}
Then throw:
ERROR in ./node_modules/@material/react-line-ripple/index.js
Module parse failed: Unexpected token (8:14)
You may need an appropriate loader to handle this file type.
| export default class LineRipple extends Component {
|
| foundation_ = null;
|
| state = {
...
Someone has a proposal solution for that? Thank’s guys 😉
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:15 (4 by maintainers)
Top Results From Across the Web
"You may need an appropriate loader to handle this file type ...
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 ...
I 'm having a problem configuring Webpack for Typescript and React. After running the NPM script: webpack serves ./webpack/webpack.config.ts ...
Read more >Module parse failed: Unexpected token. You may ... - GitHub
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. #996.
Read more >You might need an appropriate loader to handle the file type ...
You may need an appropriate loader to handle this file type. | var tokenString = localStorage.getItem("token");. | var userToken = JSON.parse( ...
Read more >CSS : You may need an appropriate loader to handle this file ...
CSS : You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file.
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
+1
Example - https://codesandbox.io/s/vy9qkj7o60
I tried out with create-react-app and it fails with following response.
Failed to compile.
package.json
App.js
Dope!