如何解决这些错误?

时间:2019-07-23 04:17:34

标签: reactjs

我只是在设置反应设置,但在此期间我发现了这些错误,而且我不知道该如何解决...

这用于带有nodejs的reactjs。

package.json

{
  "name": "REACTjs-project",
  "version": "1.0.0",
  "description": "SOME BASICS",
  "main": "index.js",
  "scripts": {
    "start": "npm run build",
    "build": "webpack -d && cp src/index.html dist/index.html && webpack-dev-server --content-base src/ --inline --hot",
    "build:prod": "webpack -p && cp src/index.html dist/index.html"
  },
  "keywords": [
    "react"
  ],
  "author": "XYZ",
  "license": "MIT",
  "dependencies": {
    "babel-loader": "^8.0.6",
    "babel-preset-es2015": "^6.24.1",
    "babel-preset-react": "^6.24.1",
    "babel-preset-stage-2": "^6.24.1",
    "react": "^16.8.6",
    "react-dom": "^16.8.6",
    "webpack-dev-server": "^3.7.2"
  },
  "devDependencies": {
    "webpack": "^4.36.1",
    "webpack-cli": "^3.3.6"
  }
}

我正在寻找解决方案

enter image description here

0 个答案:

没有答案