You many need an appropriate loader to handle this file type
See original GitHub issueWhen starting the server I get the following error:
/react-styleguidist/src/index.js Line 1: Unexpected token
You may need an appropriate loader to handle this file type.
| import React from 'react';
| import ReactDOM from 'react-dom';
| import { setComponentsNames, globalizeComponents } from './utils/utils';```
Wondering if babel isn’t transpiling the import.
Issue Analytics
- State:
- Created 8 years ago
- Comments:36 (13 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
Module parse failed: Unexpected token. You may need an appropriate loader to handle this file type, currently no loaders are configured to process...
Read more >You may need an appropriate loader to handle this ... - Reddit
I have used truncate function in my react project. Now i am getting this error in my terminal You may need an appropriate...
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 Free
Top 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
@ericmuyser
test: /\.js?$/,
means.js
or.j
, you need.jsx?
.Styleguidist don’t support webpack 1 in any case.