Error “custom keyword definition is invalid: data.errors should be boolean”

  • A+
Category:Languages

I just created a new React application using this command:

create-react-app mysite.com 

After installation, when I tried to open it using npm start and yarn start, I got the following error.

throw new Error('custom keyword definition is invalid: '  + this.errorsText(validateDefinition.errors));       ^  Error: custom keyword definition is invalid: data.errors should be boolean     at Ajv.addKeyword (/Users/myAccount/Documents/Dev/Projects/ReactJS/mysite.com/node_modules/ajv/lib/keyword.js:65:13) 

How can I fix this problem?

 


Reverting to a stable version of the ajv library also works:

npm uninstall ajv npm install ajv@6.8.1 

Comment

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: