fails to compile
Closed this issue · 1 comments
rudrakpatra commented
Failed to compile
./src/index.js 1:44
Module parse failed: Unexpected token (1:44)
File was processed with these loaders:
- ./node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js
- ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
$RefreshRuntime$ = require('C:/Users/rudrak'sPC/Desktop/react-projects/material-ui/material-ui-tut/node_modules/react-refresh/runtime.js');
|$RefreshSetup$ (module.id);
|
rudrakpatra commented
Currently I changed the react version in package.json to 4.0.1 , then npm install again, this somehow solved the problem.