Closed 0liver closed 1 year ago
Is this another random error that breaks the build?
Unfortunately, yes.
Isn't this a bug introduced by https://github.com/Lombiq/Orchard-Training-Demo-Module/issues/108?
Yes. We've fixed a similar bug there, though, and the original one still persists.
The same high-level error has just now appeared in this build: https://github.com/Lombiq/Lombiq-Tenants-Core/actions/runs/4542803172
But the root cause is a different one: pnpm@8 was released last night with some breaking changes.
Let's restrict the version to v7 for now, and in a next step, update to v8.
This was just a drive-by fix for a similar error - reopening.
Here's an example of the error:
https://github.com/Lombiq/Open-Source-Orchard-Core-Extensions/actions/runs/4388557195/jobs/7685183926#step:6:114
The cause of the error seems to be a missing script in the .bin folder of the Node.js Extensions NPM package installation, which in case of OSOCE is e.g. _C:\Projects\Lombiq\Osoce\node_modules\.nx\nodemodules\.bin.
The specific missing script varies. In the above build,
postcss
was missing, but there have been builds wheresass
was missing instead.What to do
We need to investigate why
pnpm install
does not create these scripts properly at the given location. And then, we'll have to fix it.Ideas
--report-summary
switch to allpnpm run
calls (see https://github.com/pnpm/pnpm/releases/tag/v7.28.0).--prefer-offline
flag from thepnpm install
call in Lombiq.NodeJs.Extensions\build\NodeJsExtensionsNpmPackage.targetspnpm install
call.Jira issue