Error running BuildClientProjects.bat - @yarnpkg/parsers@3.0.0-rc.49: The engine “node” is incompatible with this module

We are currently getting this error when running BuildClientProjects.bat on all of our projects if they don’t have an older yarn.lock file already

We’ve solved it temporarily by adding
“resolutions”: {
@yarnpkg/parsers”: “3.0.0-rc.48.1”
}
to the package.json files but that’s not a long term solution.


error @yarnpkg/parsers@3.0.0-rc.49: The engine “node” is incompatible with this module. Expected version “>=18.12.0”. Got “16.10.0”
error Found incompatible module.


I can see that this has been an issue before with a previous version of the parsers but now the issue has arisen again.

The Litium versions affected are all of them.

I reported it the last time but noticed it happening again the other day. Our temporary solution was to add --ignore-engines after the “&$yarnCommand install” command in the BuildClientProjects.ps1 file. But that’s not a long term solution either.

Last time it started working again after a few days so that we could revert our temporary solution. Not sure what fixed it though but it was nothing we did.

The problem is in the nx package that refer the pre-release package of yarnpkg/parsers and until they have solved their package dependency to not use the prerelease version I think we will have and need this workaround, that it was fixed before was that the yarnpkg/parsers maintainers was obsoleting the new version they was putting out but now it seams they have created new prereleases out for the 3-version and the problem come back again.

If you have newer node version you will get other dependency that have the similar restrictions but we monitoring this and looking for a permanent solution.

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.