Skip to content

ERROR Cannot read properties of undefined (reading 'forEach') #367

Description

@dongnaebi

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

  1. Install dependencies: pnpm i
  2. Start dev mode: pnpm dev

Expected behavior

Screenshots

image

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 

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions