简体   繁体   English

模块解析失败:意外令牌 (1:68)

[英]Module parse failed: Unexpected token (1:68)

Hello everyone.大家好。 Can someone help me?有人能帮我吗? I just create react app then i start it immediately.我只是创建反应应用程序然后我立即启动它。 Then i got error something like this.然后我得到了这样的错误。 I dont know what's the problem我不知道有什么问题

Failed to compile.编译失败。 ./src/index.js 1:68 Module parse failed: Unexpected token (1:68) File was processed with these loaders: ./src/index.js 1:68 模块解析失败:意外的令牌 (1:68) 使用这些加载器处理了文件:

  • ./node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js ./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. ./node_modules/babel-loader/lib/index.js 你可能需要一个额外的加载器来处理这些加载器的结果。

$RefreshRuntime$ = require('C:/Users/user/OneDrive - Ministere de l'Enseignement Superieur et de la Recherche Scientifique/Bureau/fitland-official/node_modules/react-refresh/runtime.js'); $RefreshRuntime$ = require('C:/Users/user/OneDrive - Ministere de l'Enseignement Superieur et de la Recherche Scientifique/Bureau/fitland-official/node_modules/react-refresh/runtime.js'); | | $RefreshSetup$(module.id); $RefreshSetup$(module.id); | |

Follow the commands below:请遵循以下命令:

npx create-react-app my-app
cd my-app
npm i
npm start

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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