-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lockfile v9 support #62
Comments
I will look into this. |
Hi @SukkaW, maybe ignore this, just decided spinned up a new docker instance with pnpm@9 but it doesn't have this error. For some reason nolyfill doesn't work in my main environment anymore after upgrading to pnpm@9 a while ago, will investigate more on this. |
Here's the full debug log for now: I'll try to test what caused it if possible after a few days. /home/eprm/my-hono-app …
➜ nlx nolyfill -d
Trace: TypeError: e.startsWith is not a function
at sV.refToRelative (/root/.cache/pnpm/dlx/fiazrcs3p4mgptwq6srgws2tue/18f19c5b71d-3bab/node_modules/.pnpm/[email protected]/node_modules/nolyfill/dist/package-manager-6inIkRRx.js:6:34251)
at yT.getPkgInfo (/root/.cache/pnpm/dlx/fiazrcs3p4mgptwq6srgws2tue/18f19c5b71d-3bab/node_modules/.pnpm/[email protected]/node_modules/nolyfill/dist/package-manager-6inIkRRx.js:7:108296)
at /root/.cache/pnpm/dlx/fiazrcs3p4mgptwq6srgws2tue/18f19c5b71d-3bab/node_modules/.pnpm/[email protected]/node_modules/nolyfill/dist/package-manager-6inIkRRx.js:7:115340
at Array.forEach (<anonymous>)
at DL (/root/.cache/pnpm/dlx/fiazrcs3p4mgptwq6srgws2tue/18f19c5b71d-3bab/node_modules/.pnpm/[email protected]/node_modules/nolyfill/dist/package-manager-6inIkRRx.js:7:115299)
at async /root/.cache/pnpm/dlx/fiazrcs3p4mgptwq6srgws2tue/18f19c5b71d-3bab/node_modules/.pnpm/[email protected]/node_modules/nolyfill/dist/package-manager-6inIkRRx.js:7:114377
at async Promise.all (index 0)
at async Dx (/root/.cache/pnpm/dlx/fiazrcs3p4mgptwq6srgws2tue/18f19c5b71d-3bab/node_modules/.pnpm/[email protected]/node_modules/nolyfill/dist/package-manager-6inIkRRx.js:7:114341)
at async Object.n [as searchForPackages] (/root/.cache/pnpm/dlx/fiazrcs3p4mgptwq6srgws2tue/18f19c5b71d-3bab/node_modules/.pnpm/[email protected]/node_modules/nolyfill/dist/package-manager-6inIkRRx.js:12:2542)
at async /root/.cache/pnpm/dlx/fiazrcs3p4mgptwq6srgws2tue/18f19c5b71d-3bab/node_modules/.pnpm/[email protected]/node_modules/nolyfill/dist/package-manager-6inIkRRx.js:20:71505
at /root/.cache/pnpm/dlx/fiazrcs3p4mgptwq6srgws2tue/18f19c5b71d-3bab/node_modules/.pnpm/[email protected]/node_modules/nolyfill/dist/cli.js:28:292 |
I am able to reproduce the error with |
Ahhhh just tried again with a fresh instance, previously I tested without any package inside of package.json, after installing any package, the issue could be reproduced with pnpm@9 Updated the OG post with more detail. |
Same problem |
Also seeing this error with |
@SukkaW just wanna ping you to clarify, seems to be caused by lockfile v9, and is happenning in all package manager execute, including |
…orkspace.find-packages`
This question should be reopen. This fix don't meet the document minimum support. |
@NamesMT Is it possible to add old pnpm 8 support back? |
I'll try if it's possible to support both, @nonzzz What lockfile version are you using?, is it v5? |
@NamesMT Right. my lockfile version is 5.3 |
Maybe we can install both versions of pnpm utils, and manually choose the one bassd on lockfile version. |
I'm thought about it but was afraid that it would increase the CLI bundle size too much. |
Let's give it a shot first. Correct behavior matters a lot. |
I think this size is not matter, But if pnpm inadvertently breaks this behavior we also need to report it to pnpm. |
@nonzzz it was my bad, pnpm did said they dropped support for lockfile v5 (pnpm@7 <=) but I didn't notice it and only tested |
After updating to pnpm@9, nolyfill (when ran with
npx
/bunx
/pnpx
/pnpm dlx
) exits with error:e.startsWith is not a function
.Error does not happens with pnpm@8.is caused by lockfile v9 by pnpm@9Reproducible with any fresh package, require the package.json to have at least one installed package and run
pnpm i
with pnpm@9 for v9 lockfileReproduce one-liner:
docker run -it --rm namesmt/images-alpine:node-dev zsh -c "cd home && na init && ni unocss && nlx nolyfill -d"
pnpm@8 working one-liner:
docker run -it --rm namesmt/images-alpine:node-dev_pnpm8.15.7 zsh -c "cd home && na init && ni unocss && nlx nolyfill -d"
The text was updated successfully, but these errors were encountered: