[英]Open Source React App Failed to Compile after npm install and npm start
當我嘗試運行此應用程序時,我的 window 10 上出現此錯誤。 這個應用程序作為開源項目在 github 上。 我試圖為這個項目做出貢獻,但似乎它沒有編譯。 我已經嘗試將react-scripts
更改為4.0.1
,但問題仍然存在。 在更改 react-scripts 版本時,它給了我更多在 npm 安裝上未找到相關錯誤的模塊。
請幫忙!
./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);
|
嘗試這個:
rm node_module -r
npm cache verify
npm cache clean --force
npm install
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.