Description
Self-service
- I'd be willing to implement a fix
Describe the bug
I apologize, I cannot provide too much information about our project, I hope other people who get here will be able to add to this. I'm reporting this, since you requested it in other issue, but sorry if this is not enough info.
Our yarn build of typescript react app is part of ubuntu image build and we are using Jenkins and CMake. We are installing node from https://deb.nodesource.com/setup_16.x
which yesterday got updated from 16.16.x to 16.17.0.
Our project was using 3.2.1. After we found someone reported same issue on node 18, we found a suggestion to try
yarn set version stable && yarn install
However build is still failing on yarn 3.2.2 using node 16.17.0 with the following error logs:
[2022-08-17T04:53:35.170Z] ERRO[0690] node:internal/errors:477
[2022-08-17T04:53:35.170Z] ERRO[0690] ErrorCaptureStackTrace(err);
[2022-08-17T04:53:35.170Z] ERRO[0690] ^
[2022-08-17T04:53:35.170Z] ERRO[0690]
[2022-08-17T04:53:35.170Z] ERRO[0690] Error [ERR_LOADER_CHAIN_INCOMPLETE]: "file:///blablabla/src_files/.pnp.loader.mjs 'resolve'" did not call the next hook in its chain and did not explicitly signal a short circuit. If this is intentional, include `shortCircuit: true` in the hook's return.
[2022-08-17T04:53:35.170Z] ERRO[0690] at new NodeError (node:internal/errors:387:5)
[2022-08-17T04:53:35.170Z] ERRO[0690] at ESMLoader.resolve (node:internal/modules/esm/loader:852:13)
[2022-08-17T04:53:35.170Z] ERRO[0690] at async ESMLoader.getModuleJob (node:internal/modules/esm/loader:431:7)
[2022-08-17T04:53:35.170Z] ERRO[0690] at async Promise.all (index 0)
[2022-08-17T04:53:35.170Z] ERRO[0690] at async ESMLoader.import (node:internal/modules/esm/loader:533:24)
[2022-08-17T04:53:35.170Z] ERRO[0690] at async loadESM (node:internal/process/esm_loader:91:5)
[2022-08-17T04:53:35.170Z] ERRO[0690] at async handleMainPromise (node:internal/modules/run_main:65:12) {
[2022-08-17T04:53:35.170Z] ERRO[0690] code: 'ERR_LOADER_CHAIN_INCOMPLETE'
[2022-08-17T04:53:35.170Z] ERRO[0690] }
Our only solution for now is to downgrade node to use 16.16.x during the build. Would be nice to have this resolved so we could go back to using latest stable node.
In other thread you have mentioned that it should be fixed. I wonder if there's something else need to be done, since we upgraded from 3.2.1 instead of having project on 3.2.2 from the start?
To reproduce
I'm sorry that I cannot provide more info about our project, other than this brief description:
- setup typescript react app using yarn 3.2.1
- use official stable node
https://deb.nodesource.com/setup_16.x
- Fail to build
yarn set version stable && yarn install
- retry and still fail to build
Environment
I cannot run script to get env info, since it's a automated build environment and I'm not part of the team who set it up.
Node: 16.17.0
Yarn: 3.2.2
Additional context
No response