Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs 反应Visual Studio代码无效选项对象错误_Reactjs_Visual Studio Code - Fatal编程技术网

Reactjs 反应Visual Studio代码无效选项对象错误

Reactjs 反应Visual Studio代码无效选项对象错误,reactjs,visual-studio-code,Reactjs,Visual Studio Code,这是我第一次安装react to VS代码。完成了所有步骤,成功地创建了目录,但当我写“NPMStart”启动服务器时,它出错了 PS C:\Users\01!\Desktop\weather-react-app> npm start > weather-react-app@0.1.0 start > react-scripts start Invalid options object. React Refresh Plugin has been initialized

这是我第一次安装react to VS代码。完成了所有步骤,成功地创建了目录,但当我写“NPMStart”启动服务器时,它出错了

PS C:\Users\01!\Desktop\weather-react-app> npm start

> weather-react-app@0.1.0 start
> react-scripts start

Invalid options object. React Refresh Plugin has been initialized 
using an options object that does not match the API schema.       
 - options.overlay.module: The provided value "C:\\Users\\01!\\Desktop\\weather-react-app\\node_modules\\react-dev-utils\\refreshOverlayInterop.js" contains exclamation mark (!) which is not allowed because it's reserved for loader syntax.

这可能很愚蠢,但我检查了错误消息中提到的文件,没有“(!)”。如何修复此问题?

它不是在抱怨文件,而是在抱怨目录--`C:\\Users\\01\`哦,好的。我应该更改计算机的用户名吗?如果可以的话,还是将其放在该用户的目录之外