use-chrome-storage
use-chrome-storage copied to clipboard
Uncaught TypeError when running localhost
chrome.storage
is undefined
. Looks like you do not have storage
permission in manifest.json
. Take a look at docs:
"permissions": [
"storage"
]
chrome.storage
isundefined
. Looks like you do not havestorage
permission inmanifest.json
. Take a look at docs:"permissions": [ "storage" ]
this is already set in manifest json
its working fine when im using the chrome extension
but when i disabled the chrome extension and try to access the bundle
in localhost
it produce an error
btw Im using vite
react/typescript
chrome.storage
is part of Chrome Extensions API and unavailable outside the extension context.