我的react应用在 localhost 上运行良好,但是在 netlify 上部署我的 React App 时,我遇到了错误。强>。我不知道问题出在 netlify 还是 package.json 。
我需要更新任何软件包版本吗?如何解决此错误?
我的 package.json:
0xffffffac
错误:
{
"name": "spice-store",
"version": "1.0.0",
"description": "E-commerce project",
"main": "index.js",
"scripts": {
"dev": "npm-run-all --serial dev:build-server dev:build-client dev:server",
"dev:server": "nodemon --watch build --exec \"node build/bundle.js\"",
"dev:build-server": "webpack --mode production --config webpack.server.js",
"dev:build-client": "webpack --mode production --config webpack.client.js"
},
"author": "",
"license": "ISC",
"dependencies": {
"axios": "0.16.2",
"babel-cli": "6.26.0",
"babel-core": "6.26.0",
"babel-loader": "7.1.2",
"babel-preset-env": "1.6.0",
"babel-preset-es2015": "6.24.1",
"babel-preset-es2017": "6.24.1",
"babel-preset-react": "6.24.1",
"babel-preset-stage-0": "6.24.1",
"compression": "1.7.0",
"concurrently": "3.5.0",
"css-loader": "^3.5.3",
"express": "4.15.4",
"express-http-proxy": "1.0.6",
"ignore-loader": "^0.1.2",
"lodash": "4.17.4",
"nodemon": "1.12.0",
"npm-run-all": "4.1.1",
"postcss-loader": "^3.0.0",
"react-device-detect": "^1.12.1",
"react-dom": "^16.13.1",
"react-helmet": "5.2.0",
"react-redux": "^7.2.0",
"react-router-config": "^5.1.1",
"react-router-dom": "^5.2.0",
"react-router-redux": "^4.0.8",
"redux": "^4.0.5",
"redux-thunk": "2.2.0",
"serialize-javascript": "1.4.0",
"style-loader": "^1.2.1",
"webpack": "^4.43.0",
"webpack-dev-server": "^3.11.0",
"webpack-merge": "4.1.0",
"webpack-node-externals": "1.6.0"
},
"devDependencies": {
"isomorphic-style-loader": "^5.1.0",
"react": "^16.13.1",
"webpack-cli": "^3.3.11"
}
}