-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SvelteKit versions above 1.7.2 don't work for developing browser extensions #9277
Comments
This is not a reproduction. |
Updated. |
How? I've never done this before |
Updated for instructions for Firefox and Chrome. |
My guess is this has something to do with our switch from |
Yep, that's the issue. I've opened antony/sveltekit-adapter-browser-extension#24, so I'll close this |
Describe the bug
If you try to use a version above
1.7.2
to develop a browser extension, page scripts don't seem to work.For instance, if you have the following as your popup page...
...it won't update the UI on click so the count will remain
0
Reproduction
npm create svelte@latest myapp cd myapp npm install npm i -D stephentuso/sveltekit-adapter-browser-extension
svelte.config.js
src/routes/+layout.ts
src/routes/+page.svelte
src/routes/popup/+page.svelte
Now load the app as a browser extension:
about:debugging
address, clickThis Firefox
link, clickLoad Temporary Add-on...
, then open the app'smanifest.json
in itsbuild
directory.Menu > More tools > Extensions
, clickLoad unpacked
, then open thebuild
directoryOpen the extension's popup, and try clicking the button. It won't change.
Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
To workaround this, downgrade:
npm install @sveltejs/kit@1.7.2
The text was updated successfully, but these errors were encountered: