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:
Comment out
node_modules/ajv/lib/keyword.js
at line 64-65 for a workaround solution:Ref: https://github.com/webpack/webpack/issues/8768
I thought that was something new coming with "@symfony/webpack-encore": "^0.23.0". However, there's an issue with the
ajv
library.Dirty fix:
In
change the
errors:
parameter at line 14 from'full'
totrue
.Clean fix (temporary):
Modify your package.json using this:
I get this error when I try and make a new nuxt application with npx:
I did
Like @robert Rodriguez, it works, no errors.