. Advertisement .
..3..
. Advertisement .
..4..
I get the error message “you may need an appropriate loader to handle this file type …” when compiling ES6 assets.
Here is the detail of the error I got
You may need an appropriate loader to handle this file type.
| import React from 'react';
| /*
| import { render } from 'react-dom'
I’m using ‘babel-loader’ 6.0.0, it doesn’t seem to work. Please guide me how to fix it
Please follow these steps
1) Install es2015 preset
2) Configure babel-loader
add a .babelrc file to the root of your project: