tab page works with pnpm run dev but is blocked when i run pnpm build and pnpm package

When I upload my zipfile to plasmo itero, none of my users can access the tab page. however It works perfectly fine on my computer when I run pnpm run dev. What should I do? Ive been stuck on this issue for over a day now 😭
7 Replies
BrianCao
BrianCaoOP9mo ago
No description
BrianCao
BrianCaoOP9mo ago
my manifest
BrianCao
BrianCaoOP9mo ago
this is how im trying to open the tab page
No description
BrianCao
BrianCaoOP9mo ago
in the popup^ do i have to do this in the background script or something?
filthytone
filthytone9mo ago
Is the extension id the same in both places ? Instead of hardcoding the full tab page url like that , try chrome.runtime.getURL(“tabs/quiz-me.html”) instead
BrianCao
BrianCaoOP9mo ago
i figured out the problem production id is different than the dev id the fix was just switching them However now i need to program a way to automatically switch between the two
filthytone
filthytone9mo ago
That’s what the function I gave you does It’ll generate the full url with the correct extension id
Want results from more Discord servers?
Add your server