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
This was probably introduced by #3667 - at least it made it more visible (cc @merceyz)
Here's a repro:
corepack enable npm
cd`mktemp -d`
yarn init -2
yarn set version from sources
yarn config set pnpEnableEsmLoader true
yarn
NODE_OPTIONS="--loader $PWD/.pnp.loader.mjs" yarn add test@andreialecu/nestjs-sentry#aa/refactor
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension "" for /private/var/folders/9p/k1yqxx0d7rn1nlztg_wm7sbw0000gn/T/xfs-1ff1050a/node_modules/typescript/bin/tsc
at new NodeError (node:internal/errors:371:5)
Note that in my actual project I'm not adding NODE_OPTIONS="--loader $PWD/.pnp.loader.mjs" manually. Yarn does that itself for some reason which is probably related to heuristics where it finds that one of my dependencies needs it.
This was probably introduced by #3667 - at least it made it more visible (cc @merceyz)
Here's a repro:
Note that in my actual project I'm not adding
NODE_OPTIONS="--loader $PWD/.pnp.loader.mjs"
manually. Yarn does that itself for some reason which is probably related to heuristics where it finds that one of my dependencies needs it.Originally posted by @andreialecu in #3832 (comment)
The text was updated successfully, but these errors were encountered: