簡體   English   中英

安裝 npm 和 npm 啟動后開源 React App 編譯失敗

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM