-
-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
wxt/storage
doesn't work for MV2
#1199
Labels
bug
Something isn't working
Comments
Any estimate of when it'll be pushed to |
It's a subdependency, so update it and you can already use it |
# Might work?
pnpm upgrade @wxt-dev/storage
# But this is what I usually do to upgrade a subdependency
pnpm i @wxt-dev/storage@latest
pnpm rm @wxt-dev/storage
pnpm why @wxt-dev/storage |
tomowang
added a commit
to tomowang/peek-preview
that referenced
this issue
Nov 25, 2024
according to wxt-dev/wxt#1199, firefox storage api will raise error
5 tasks
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Describe the bug
Because wxt/storage uses
chrome
, in MV2 it requires a callback parameter. However, that parameter is not passed, and it is assumed the storage returns a promise, like it does for MV3 or thebrowser
object.But since it expects a callback, it returns
undefined
instead of a promise and we get the error from above.Reproduction
repro.zip
Steps to reproduce
And open the background devtools
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: