You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node:internal/errors:484
ErrorCaptureStackTrace(err);
^
Error [ERR_LOADER_CHAIN_INCOMPLETE]: "file:///Users/rayjiang/projects/ruby-yarn/.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.
at new NodeError (node:internal/errors:393:5)
at ESMLoader.resolve (node:internal/modules/esm/loader:839:13)
at async ESMLoader.getModuleJob (node:internal/modules/esm/loader:413:7) {
code: 'ERR_LOADER_CHAIN_INCOMPLETE'
}
t
Node.js v19.2.0
I downgraded volta pin node@18 (node@16) does NOT help.
But if create the app using npx create-react-app mydemo, npm start works just fine.
Thanks in advance for any advice.
The text was updated successfully, but these errors were encountered:
Hi @rjiang9, thanks for the report! It looks like this is actually an issue with that specific Yarn version and its interaction with newer Node releases. See yarnpkg/berry#4778
From that, it looks like upgrading to Yarn 3.2.2 or newer (and potentially deleting / regenerating .pnp.loader.mjs) should resolve the issue.
Hi @rjiang9, thanks for the report! It looks like this is actually an issue with that specific Yarn version and its interaction with newer Node releases. See yarnpkg/berry#4778
From that, it looks like upgrading to Yarn 3.2.2 or newer (and potentially deleting / regenerating .pnp.loader.mjs) should resolve the issue.
Thank you @charlespierce . Upgrading yarn to v3.2.2 and all good now.
For anybody who stump on this post: to upgrade yarn, just do yarn set version 3.2.2
Envs:
which yarn
returns.~/volta/bin/yarn
Create an react app:
yarn create react-app mydemo
cd mydemo
yarn start
And got this errro:
I downgraded
volta pin node@18
(node@16) does NOT help.But if create the app using
npx create-react-app mydemo
,npm start
works just fine.Thanks in advance for any advice.
The text was updated successfully, but these errors were encountered: