Skip to content
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

pnpm dlx wxt throws error resolving @wxt-dev/module-svelte but other package managers don't #1160

Open
5 tasks done
42willow opened this issue Nov 12, 2024 · 1 comment
Open
5 tasks done
Labels
pending-triage Someone (usually a maintainer) needs to look into this to see if it's a bug

Comments

@42willow
Copy link
Contributor

Describe the bug

image

For some reason the error is only when using the pnpm package manager, I ran into this issue when migrating over to pnpm from bun and my ci stopped working.

I have not tested with yarn, but I know it works for both bun and npm

Reproduction

https://github.com/schooltape/schooltape

Steps to reproduce

clone the repo
pnpm install
pnpx wxt OR pnpm dlx wxt

System Info

System:
    OS: Linux 6.6 NixOS 24.05 (Uakari) 24.05 (Uakari)
    CPU: (8) x64 Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
    Memory: 8.50 GB / 15.27 GB
    Container: Yes
    Shell: 0.93.0 - /run/current-system/sw/bin/nu
  Binaries:
    Node: 20.17.0 - /etc/profiles/per-user/willow/bin/node
    npm: 10.8.2 - /etc/profiles/per-user/willow/bin/npm
    pnpm: 9.7.0 - /etc/profiles/per-user/willow/bin/pnpm
    bun: 1.1.8 - /etc/profiles/per-user/willow/bin/bun
  Browsers:
    Chromium: 130.0.6723.91

Used Package Manager

pnpm

Validations

@42willow 42willow added the pending-triage Someone (usually a maintainer) needs to look into this to see if it's a bug label Nov 12, 2024
@1natsu172
Copy link
Contributor

I think this is because pnpm hotloads when dlx, not refer locally. bunx and npx have local cache priority, so if it's in node_modules, they use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-triage Someone (usually a maintainer) needs to look into this to see if it's a bug
Projects
None yet
Development

No branches or pull requests

2 participants