wxt: The popup doesn't show anything and right clicking into developer mode shows an error:Error: @vitejs/plugin-react can't detect preamble
Describe the bug
The popup doesn’t show anything and right clicking into developer mode shows an error:
Error: @vitejs/plugin-react can’t detect preamble
snapshots:
Reproduction
bunx wxt@latest init
Steps to reproduce
Reproduction step:
1.bunx wxt@latest init 2.cd wxt-demo 3.bun i 4.bun dev (bun -b dev also has the same issue) 5.right click on popup 6.open devtool
System Info
System:
OS: macOS 15.0
CPU: (8) arm64 Apple M1
Memory: 156.33 MB / 16.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
bun: 1.2.5 - ~/.bun/bin/bun
Browsers:
Chrome: 135.0.7049.85
Safari: 18.0
npmPackages:
wxt: ^0.20.0 => 0.20.1
Used Package Manager
bun
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.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 12
- Comments: 21 (4 by maintainers)
Downgrade version of
wxtfrom"wxt": "^0.20.0"to"wxt": "0.20.0"works.@Dieber You could take it a try.
Thanks to @Libra-Lei
OK, fixed fr: https://github.com/wxt-dev/wxt/releases/tag/wxt-v0.20.3
Yes indeed, the error seems different :
However, I haven’t changed anything in the default template Thanks
我看到,wxt 昨天发了一个小版本,可以先降级并锁定 0.20.0
This works, thank you @aklinker1 @SimYunSup
The same.
How to reproduce:
Simply replace
buntopnpmLog: