'react' - 运行 npm 启动后,它给出 ./src/index.js 找不到模块:无法解决"C:\Users\...\src"错误中的"反应"



In reactJs after run

npm 启动

它给

./src/index.js 找不到模块:无法解析 中的"反应" 'C:\Users...\src'

错误。

这是我的包裹.js

{
"name": "client-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"@aspnet/signalr": "^1.0.4",
"react": "^16.5.2",
"react-dom": "^16.5.2",
"react-scripts": "^1.1.5"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}

尝试删除package-lock.json,运行npm install,然后再次运行npm start

相关内容

  • 没有找到相关文章

最新更新