question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

webpack broken by ajv@6.9.0, "custom keyword definition is invalid: data.errors should be boolean"

See original GitHub issue

Bug report

What is the current behavior? A fresh install of webpack will fail to run with the error “custom keyword definition is invalid: data.errors should be boolean” due to the latest version of ajv. See issue here https://github.com/epoberezkin/ajv/issues/941 referencing many other broken projects.

If the current behavior is a bug, please provide the steps to reproduce. Install webpack and attempt to use it.

What is the expected behavior? I expect webpack not to fail due to unreliable, auto-updating dependencies.

Other relevant information: webpack version: 4.28.4 Node.js version: 10.15.1 Operating System: Windows 10 Additional tools:

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:163
  • Comments:75 (5 by maintainers)

github_iconTop GitHub Comments

123reactions
RusseIIcommented, Feb 10, 2019

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 ajv@6.8.1
54reactions
tyteen4a03commented, Feb 10, 2019

Or add this to your package.json:

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

Then yarn install.

For npm users:

rm -rf node_modules
npx npm-force-resolutions
npm install
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error "custom keyword definition is invalid: data.errors should ...
reactjs - Error "custom keyword definition is invalid: data. errors should be boolean" - Stack Overflow. Stack Overflow for Teams – Start ...
Read more >
webpack broken by ajv@6.9.0, "custom keyword definition is ...
报错: webpack broken by ajv@6.9.0, "custom keyword definition is invalid: data.errors should be boolea. CC_Amber 于 2019-02-10 11:48:49 发布 639 收藏.
Read more >
ajv-validator/ajv - Gitter
I don't understand what does mean "Error: schema is invalid: data.properties['oneOf'] should be object,boolean". https://runkit.com/embed/vx6bg7i6ehkx.
Read more >
User defined keywords - Ajv JSON schema validator
Define keyword with "validate" function​​ The function should return validation result as boolean. It can return an array of validation errors via ....
Read more >
Ajv: Another JSON Schema Validator - GitLab
to reduce the mistakes in JSON schemas and unexpected validation results, strict mode is added ... You can define custom keywords with addKeyword...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found