You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improved error message when entrypoint loading fails #1056
`${filePath}: Cannot use imported variable "${variableName}" outside the main function. See https://wxt.dev/guide/go-further/entrypoint-side-effects.html`,
{cause: err},
);
It's just in the wrong place, and isn't used with the vite-node entrypoint loader. So we just need to extract that try/catch further up the call tree.
I also noticed that whenever I update something and then the dev server reloads the extension, if I reload the web page, the content script won't run for some reason
I have to reload the dev server every time I make a change and then reload the extension, which will trigger a reload of the web page
Activity
aklinker1 commentedon Oct 7, 2024
I thought I remembered already doing this... And I have:
wxt/packages/wxt/src/core/utils/building/import-entrypoint.ts
Lines 99 to 102 in c2b151b
It's just in the wrong place, and isn't used with the
vite-nodeentrypoint loader. So we just need to extract that try/catch further up the call tree.avi12 commentedon Oct 17, 2024
Another one that occurs as a result of

wxt dev:aklinker1 commentedon Oct 18, 2024
Huh, that one is already customized, not sure why you're getting an empty string though :/
avi12 commentedon Oct 18, 2024
I also noticed that whenever I update something and then the dev server reloads the extension, if I reload the web page, the content script won't run for some reason
I have to reload the dev server every time I make a change and then reload the extension, which will trigger a reload of the web page
aklinker1 commentedon Oct 18, 2024
Seems related to #1074 (comment). Are you using a persistent profile?
avi12 commentedon Oct 18, 2024
Yes
In my YTTM project I'm only testing in a persistent profile, not temporarily loading Chrome instances