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);
首先需要排除该项目的路径是否含有特殊字符,保证文件路径正常,一般来说都是因为路径不规范导致的