Webpack can not load data.js file whne installed globally with npm.
Error:
Module parse failed: Unexpected token (7:16)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| import data from 'data';
|
> ReactDOM.render(<App models={data} />, document.getElementById('app'));
|
Webpack can not load
data.js
file whne installed globally with npm.Error: