-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gatsby build fails with non-descript ENGINE.VALIDATION Error #38467
Comments
This issue appears to be similar to #38465, which does not have a resolution |
Same error. It seems like an issue with gatsby-source-wordpress since it disappeared after I downgraded it to version 6.25.4 |
@gustavo-a Thanks for the tip! That worked! To anyone else who needs to be unblocked, I was able to get my site building with the following deps:
|
I am also getting this error It was working fine earlier, i started implementing , and development works fine but the build fails.
"gatsby-source-wordpress": "^7.6.0" Still, the problem is the same, reverted the slice work, but no luck. |
Tried with |
After deleting the package-lock.json and reinstalling the modules, now i am getting this error as well, DB source is same, nod modification done in CMS. |
In my case after investing days, I found the at
|
In the case of my error #38465 the error seems very closely linked to the reasons I explain in my reply. |
@insaurabh |
I've rolled back to 7.9.0 and this seems to fix both the current issue and also the #38465 |
Hi ! I have the same issue while upgrading from 4 to 5.
Thanks |
Hey @insaurabh, did you end up getting builds working when using getServerData() ? that seems to be the catalyst for me and I'm pretty desperate for a solution as I need this for Wordpress preview pages. |
When flipping the silent bool on the validateEngines function inside Gatsby's validate-engines util to false, the build fail log outputs:
|
For that project getServerData() working when rolled back. |
It's so weirdly inconsistent. Sometimes if I remove my node_modules folder and .lock, start a fresh install, it complains with the validation engine error, so i uninstall gatsby-source-wordpress, reinstall to 7.10.1 it works (sometimes). When investigating the validation error more closely (by going into node_modules > gatsby > dist > utils > validate-engines > index.js and setting silent to false ) it looked like the errors were stemming from immer, more precisely @rematch/immer. Because some other plugins i have like react-redux, were using different versions of immer i had to set some overrides for gatsby-source-wordpress in my package.json
This fixed it for me but i still can't add certain options in the gatsby-config for gatsby-source-wordpress like presets etc.... such a headache. |
@vipinamethi try my approach above: rm -rf node_modules add "gatsby-source-wordpress": "^7.10.1" to your dependencies then add
to your package.json, then npm install. |
Hello I have the same issue : ERROR #98001 ENGINE.VALIDATION nccwpck_require is not define apparently it's a problem with wepack |
Preliminary Checks
Description
Hello,
I am in the process of bringing my Gatsby v3 site up to v5, and unfortunately I am running into some issues when executing
gatsby build
. After agatsby clean
andgatsby build --verbose
, I receive the following nondescript error:My repo works without issue when running
gatsby develop
.Reproduction Link
(In progress)
Steps to Reproduce
gatsby build --verbose
Expected Result
I expected a successful build
Actual Result
Build fails with
ERROR #98001 ENGINE.VALIDATION
Environment
Config Flags
None
The text was updated successfully, but these errors were encountered: