Skip to content
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

"Error in invocation of storage.get" when running in MV2 mode #1242

Closed
5 tasks done
max-arias opened this issue Dec 3, 2024 · 3 comments
Closed
5 tasks done

"Error in invocation of storage.get" when running in MV2 mode #1242

max-arias opened this issue Dec 3, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@max-arias
Copy link

Describe the bug

Trying to use @wxt-dev/storage getItem or getItems fails when building the extension in MV2 (tried both in Chrome and Firefox)

Reproduction

mv2-repro.zip

Steps to reproduce

  • Unzip
  • Install deps
  • Run npm run dev
  • Enable Dev mode in Chrome
  • Inspect background page/console
  • You should see this error:
Screenshot 2024-12-03 at 2 06 33 PM

(Note: this is just using the vanilla template)

System Info

System:
    OS: macOS 15.1.1
    CPU: (12) arm64 Apple M2 Max
    Memory: 6.30 GB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.16.0 - ~/.nvm/versions/node/v20.16.0/bin/node
    Yarn: 4.5.0 - ~/.nvm/versions/node/v20.16.0/bin/yarn
    npm: 10.8.1 - ~/.nvm/versions/node/v20.16.0/bin/npm
    bun: 1.1.13 - ~/.bun/bin/bun
    Watchman: 2024.01.15.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 131.0.6778.86
    Safari: 18.1.1
    Safari Technology Preview: 18.2

Used Package Manager

npm

Validations

@max-arias max-arias added the pending-triage Someone (usually a maintainer) needs to look into this to see if it's a bug label Dec 3, 2024
@aklinker1
Copy link
Collaborator

aklinker1 commented Dec 3, 2024

Oh I see, this is chrome MV2... I could fix this, but MV2 is basically dead on chrome, are you working on a legacy enterprise extension? I think that's the only place MV2 still works on chrome, at least until google kills it in June 2025.

@aklinker1 aklinker1 added bug Something isn't working and removed pending-triage Someone (usually a maintainer) needs to look into this to see if it's a bug labels Dec 3, 2024
@max-arias
Copy link
Author

Oh weird!

I thought I had caught this originally in Firefox, but I can't repro there:

Screenshot 2024-12-03 at 4 02 01 PM

I guess its a non-issue. I only use MV2 in Firefox

@aklinker1
Copy link
Collaborator

OK, yup, this issue used to happen in firefox, but that was fixed a few weeks ago: #1199

@aklinker1 aklinker1 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 3, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants