wxt-dev / wxt-dev/wxt

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

Open
#1,160 1 comment 0 reactions 0 assignees View on GitHub

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

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.