Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/reactjs/25.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 启动使用create react app引导的react app时出错_Reactjs - Fatal编程技术网

Reactjs 启动使用create react app引导的react app时出错

Reactjs 启动使用create react app引导的react app时出错,reactjs,Reactjs,我在使用createreact-app命令创建react-app时遇到了一个奇怪的错误 正如文档中所述,我也卸载了全局卸载的CreateReact应用程序,但似乎什么都不起作用。将react脚本版本降低到4.0.1或更高版本是可以解决的,但我不希望这样。没有合法的方法来解决这个问题。错误是: ./src/index.js 1:123 Module parse failed: Unterminated string constant (1:123) File was processed with

我在使用createreact-app命令创建react-app时遇到了一个奇怪的错误

正如文档中所述,我也卸载了全局卸载的CreateReact应用程序,但似乎什么都不起作用。将react脚本版本降低到4.0.1或更高版本是可以解决的,但我不希望这样。没有合法的方法来解决这个问题。错误是:

./src/index.js 1:123
Module parse failed: Unterminated string constant (1:123)
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('E:/Study Material/myProjects'/Fullstack/e-commerce/client/node_modules/react-refresh/runtime.js');
| $RefreshSetup$(module.id);
|

您的命令行中似乎有一个未完成的字符串:

$RefreshRuntime$=require('E:/Study Material/myProjects'/Fullstack/E-commerce/client/node_modules/react refresh/runtime.js')

可能是:

$RefreshRuntime$=require('E:/Study Material/myProjects/Fullstack/E-commerce/client/node_modules/react refresh/runtime.js')

删除
/myProjects

让我知道它是否有效!:)