Today I learned React for a day and built many projects. As a result, projects created with creat-react-app at six o’clock in the evening failed to start. The prompts are as follows:
After comparing the various files, it should be the version in the package-lock.json file that has changed.
Then look for any changes in this jsx-a11y, and find that the version has changed
Change the configuration from
"eslint-plugin-jsx-a11y": {
"version": "6.5.0",
"resolved": "http://registry.npm.baidu-int.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.5.0.tgz",
"integrity": "sha1-KRaAgxzvYKy85Rq4Hmbbygsqs9Q=",
"requires": {
"@babel/runtime": "^7.16.3",
"aria-query": "^4.2.2",
"array-includes": "^3.1.4",
"ast-types-flow": "^0.0.7",
"axe-core": "^4.3.5",
"axobject-query": "^2.2.0",
"damerau-levenshtein": "^1.0.7",
"emoji-regex": "^9.2.2",
"has": "^1.0.3",
"jsx-ast-utils": "^3.2.1",
"language-tags": "^1.0.5",
"minimatch": "^3.0.4"
},
to
"eslint-plugin-jsx-a11y": {
"version": "6.4.1",
"resolved": "http://registry.npm.baidu-int.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.4.1.tgz",
"integrity": "sha1-othMqkl1aUL0Lx/6uQAkNjkXGP0=",
"requires": {
"@babel/runtime": "^7.11.2",
"aria-query": "^4.2.2",
"array-includes": "^3.1.1",
"ast-types-flow": "^0.0.7",
"axe-core": "^4.0.2",
"axobject-query": "^2.2.0",
"damerau-levenshtein": "^1.0.6",
"emoji-regex": "^9.0.0",
"has": "^1.0.3",
"jsx-ast-utils": "^3.1.0",
"language-tags": "^1.0.5"
},
Re-npm install
again, it will start
successfully again