`pnpm dlx wxt` throws error resolving `@wxt-dev/module-svelte` but other package managers don't
Open
Nobody has claimed this yet.
pending-triage
- Dominant language
- TypeScript
- Stars
- 10.5k
- Forks
- 564
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
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
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- The provided reproduction is a minimal reproducible example of the bug.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Clone the linked schooltape reproduction and run pnpm install followed by pnpx wxt or pnpm dlx wxt, then compare with npm and bun as reported. Trace the package-resolution path for @wxt-dev/module-svelte; done means pnpm can resolve and run the module without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100