It throw error Cannot find module 'ajv/lib/compile/equal' when perform build via next build
Steps to reproduce the behavior, please provide code snippets or a repository:
yarnnext buildIt should build successfully.
On my Macbook

Also on Drone in CI process.

I think the problem itself is because ajv just bump it's version to 6.6.0 which remove equal function.
For those who also get this error, you can add ajv as dependencies with exact version 6.5.5
"ajv": "6.5.5"
As stated in https://github.com/epoberezkin/ajv/issues/889.
Adding the following lines to package.json worked for yarn.
"resolutions": {
"ajv": "6.5.5"
},
This is definitely a bug that needs to be resolved.
This solution works. I was having trouble all morning. Thank you!
I got this error with next@canary, not [email protected] .
Should be fixed: https://github.com/epoberezkin/ajv/commits/master
Most helpful comment
As stated in https://github.com/epoberezkin/ajv/issues/889.
Adding the following lines to
package.jsonworked for yarn.