这是react的4.01~4.03版本比较坑的地方,先看报错
./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/react-scripts/node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
同样的代码在两台设备运行一台正常一台报错,仔细排查之后发现是文件的路径问题,不能运行的路径含有单引号字符Shine’lon










