PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
8.84k stars 314 forks source link

TypeError: Cannot read properties of undefined (reading 'indexOf') #988

Open mohamedsalem331 opened 1 month ago

mohamedsalem331 commented 1 month ago

What happened?

this issue is same i guess as #5084, it happened when i was trying to run the dev server or building it. i tried to run pnpm dev --verbose but wasn't very helpful.

But after couple of hours i figured out that the problem was with node version 21.0 had some incompatible issues with parcel package, i solved the issue by simply updating nodejs from 21.0 to 21.4, this solved the issue for me.

iam not sure if this issue happened to others but if yes i suggest we can add warning during bootstrap process or after that nodejs version 21.0 has issues and downgrading it or updating node to latest is required.

Version

Latest

What OS are you seeing the problem on?

Windows

What browsers are you seeing the problem on?

Chrome

Relevant log output

TypeError: Cannot read properties of undefined (reading 'indexOf')
Command failed with exit code 1

(OPTIONAL) Contribution

Code of Conduct