Why is npm start (after create-react-app) failing to run?

Quick fix is mentioned here :

  • GITHUB - webpack/issues/8768

Essentially go to node_modules/ajv/lib/keyword.js and comment out lines 64 and 65.


As @atsnam has said, you can find the resolution here https://github.com/webpack/webpack/issues/8768.

If you use yarn

add below to package.json

"resolutions": {
  "ajv": "6.8.1"
}

then run yarn install

if you use npm

npm uninstall ajv
npm install [email protected]

That worked for me


just add resolutions to your package.json like this:

  { 
    "dependencies": {
      ...
    }
    "resolutions": {
      "ajv": "6.8.1"
    }
  }

then run npm install. if you use yarn, yarn install