use-chrome-storage icon indicating copy to clipboard operation
use-chrome-storage copied to clipboard

Uncaught TypeError when running localhost

Open darwin808 opened this issue 1 year ago • 3 comments

image

darwin808 avatar Mar 16 '23 07:03 darwin808

chrome.storage is undefined. Looks like you do not have storage permission in manifest.json. Take a look at docs:

    "permissions": [
        "storage"
    ]

onikienko avatar Mar 16 '23 10:03 onikienko

chrome.storage is undefined. Looks like you do not have storage permission in manifest.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

darwin808 avatar Mar 16 '23 10:03 darwin808

chrome.storage is part of Chrome Extensions API and unavailable outside the extension context.

onikienko avatar Mar 16 '23 10:03 onikienko