我正在使用“npx create-react-app”创建一个新的 reactjs 应用程序,当它完成并尝试使用 "npm start" 运行 它时,我收到一个错误

I'am creating a new reactjs application using " npx create-react-app" , and when it's done and trying to run it using "npm start" , I get an error

这是完整的错误信息

./src/index.js 1:58
Module parse failed: Unexpected token (1:58)
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/fcss/Desktop/Hussein's Projects/react-firebase-crud/node_modules/react-refresh/runtime.js');
| $RefreshSetup$(module.id);
|

发生这种情况是因为您在路径名称“Hussein's Projects”中使用了“'”,将其更改为“Husseins_Projects”并且一切正常 您可以阅读更多相关信息 here