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
my manifest
this is how im trying to open the tab page
in the popup^
do i have to do this in the background script or something?
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
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
That’s what the function I gave you does
It’ll generate the full url with the correct extension id