Describe the bug
I followed the guide to try out wxt, but when I added a content script, dev threw an error as soon as it ran.
ERROR Cannot read properties of undefined (reading 'forEach')
I couldn't figure out what the problem was or how to continue. Did I miss something?
To Reproduce
wxt-demo.zip
- Install dependencies:
pnpm i
- Start dev mode:
pnpm dev
Expected behavior
Screenshots

Environment
System:
OS: Windows 11 10.0.22621
CPU: (12) x64 11th Gen Intel(R) Core(TM) i5-11600KF @ 3.90GHz
Memory: 4.14 GB / 15.84 GB
Binaries:
Node: 18.19.0 - ~\.nvmd\versions\18.19.0\node.EXE
npm: 10.2.3 - ~\.nvmd\versions\18.19.0\npm.CMD
pnpm: 8.12.0 - ~\AppData\Local\pnpm\pnpm.EXE
Browsers:
Edge: Chromium (120.0.2210.144)
Internet Explorer: 11.0.22621.1
npmPackages:
wxt: ^0.14.0 => 0.14.5
Describe the bug
I followed the guide to try out wxt, but when I added a content script, dev threw an error as soon as it ran.
I couldn't figure out what the problem was or how to continue. Did I miss something?
To Reproduce
wxt-demo.zip
pnpm ipnpm devExpected behavior
Screenshots
Environment