react构建项目,使用npm start 启动,直接报这个错误,找了其他方法都不行,请求帮忙看看

Failed to compile.

./src/index.js 1:43
Module parse failed: Unexpected token (1:43)
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('/Volumes/Coder's notes/React/sell-demo/node_modules/react-refresh/runtime.js');
| $RefreshSetup$(module.id);

 

 

 

解决了么?我也碰到这个问题了

这个问题解决了吗?

https://www.npmjs.com/package/@pmmmwh/react-refresh-webpack-plugin@pmmmwh/react-refresh-webpack-plugin

从报错来看,./src/index.js 43行可能有问题,你注释看看,或者截个图发出来看看