简体   繁体   中英

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

This is the full error message

./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);
|

This happens because you are using " ' " in your path name "Hussein's Projects", change it to "Husseins_Projects" and everything should work You can read more about it here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM