-
-
Notifications
You must be signed in to change notification settings - Fork 447
Labels
contribution welcomegood first issueWant to contribute to WXT? This is a good place to startWant to contribute to WXT? This is a good place to start
Milestone
Description
Describe the bug
when using npm, TS infers browser namespace successfully:
but when using pnpm, it fails without installing @types/chrome manually:
we may need to improve docs or fix: this might be related to how pnpm handles devDependencies differently from npm.
Reproduction
just start fresh projects with pnpm following installation docs.
pnpm dlx wxt@latest initSteps to reproduce
after installing, put your cursor on browser.runtime.* to see the inferred types.
for example, browser.runtime.id in entrypoints/background.ts.
System Info
System:
OS: macOS 15.0.1
CPU: (11) arm64 Apple M3 Pro
Memory: 2.53 GB / 36.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.18.0 - ~/.nvm/versions/node/v20.18.0/bin/node
npm: 10.8.2 - ~/.nvm/versions/node/v20.18.0/bin/npm
pnpm: 9.9.0 - /opt/homebrew/bin/pnpm
Browsers:
Chrome: 130.0.6723.70
Safari: 18.0.1
npmPackages:
wxt: ^0.19.11 => 0.19.13Used 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.
Metadata
Metadata
Assignees
Labels
contribution welcomegood first issueWant to contribute to WXT? This is a good place to startWant to contribute to WXT? This is a good place to start