【发布时间】:2021-04-21 10:48:34
【问题描述】:
当我尝试运行此应用程序时,我的窗口 10 上出现此错误。这个应用程序作为开源项目在 github 上。我试图为这个项目做出贡献,但似乎它没有编译。我已经尝试将react-scripts 更改为4.0.1,但问题仍然存在。在更改 react-scripts 版本时,它给了我更多在 npm install 上未找到相关错误的模块。
请帮忙!
./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('C:/Users/Singh's/Desktop/Opportunity-Calendar-Frontend/Opportunity-Calendar-Frontend/node_modules/react-refresh/runtime.js');
| $RefreshSetup$(module.id);
|
【问题讨论】:
标签: javascript node.js reactjs npm webpack