Extension fails to run due to Parcel - The Expression evaluated to a falsy value
About four days ago, I ran into an issue where the extension would fail to run with the following error:
This is weird because I don't think I've changed anything in the project. I maybe ran an
npm install
recently, and I believe this might be dependency related, but I cannot find where the issue comes from or how to work around it.
Here are the contents of /home/user/project/browser-extension/.plasmo/static/background/index.ts
, the file where Parcel breaks:
And here's the background file that it's being imported, which is pretty much just an event listener so I'm not sure what the problem is.
Any idea how to troubleshoot this issue? I've gone through the issue tracker and I couldn't find anything helpful. I've tried with the --no-hoist
flag without any luck, and this happens both when running dev
and build
0 Replies