我已经使用此Tutorial创建了一个示例react / redux / .net核心应用程序。但是,当我尝试使用npm start启动应用程序时,出现“找不到模块错误”。
我试图通过运行以下命令来清理应用程序:
但没有成功。
package.json
{
"name": "DCRRWebApplication",
"version": "0.1.0",
"private": true,
"dependencies": {
"bootstrap": "^4.1.3",
"jquery": "3.3.1",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-redux": "^6.0.0",
"react-router-bootstrap": "^0.24.4",
"react-router-dom": "^4.2.2",
"react-router-redux": "^5.0.0-alpha.8",
"react-scripts": "^2.1.5",
"reactstrap": "^7.1.0",
"redux": "^4.0.1",
"redux-thunk": "^2.2.0",
"rimraf": "^2.6.2"
},
"devDependencies": {
"ajv": "^6.0.0",
"babel-eslint": "^10.0.1",
"cross-env": "^5.2.0",
"eslint": "^5.13.0",
"eslint-config-react-app": "^3.0.7",
"eslint-plugin-flowtype": "^3.4.1",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-react": "^7.11.1",
"react-app-rewire-yaml": "^1.1.0",
"react-app-rewired": "^2.1.0",
"react-scripts-ts": "^4.0.8"
},
"eslintConfig": {
"extends": "react-app"
},
"scripts": {
"start": "rimraf ./build && react-app-rewired start --scripts-version react-scripts-ts",
"build": "react-app-rewired build --scripts-version react-scripts-ts",
"test": "react-app-rewired test --scripts-version react-scripts-ts --env=jsdom",
"eject": "react-scripts eject",
"lint": "eslint ./src/"
}
}