Roots Discourse

Error: Cannot find module 'ajv/lib/compile/equal'


#1

I’m getting this error after running

yarn && yarn build

I installed Sage with

composer create-project roots/sage <project name>

module.js:550
    throw err;
    ^

Error: Cannot find module 'ajv/lib/compile/equal'

FIXED: As I was typing this, I found the issue thread on github for ajv. Adding

  "resolutions": {
    "ajv": "6.5.4"
  }

to package.json fixes the problem and allows yarn build to complete.