vite-plugin-web-extension icon indicating copy to clipboard operation
vite-plugin-web-extension copied to clipboard

Add permissions

Open oliverkoehler opened this issue 2 years ago • 5 comments

Hey, i tried to add new permissions to the manifest:

...
"version": "1.0.10",
"manifest_version": 3,
"permissions": [
  "storage"
],

Any suggestions why chrome doesnt recognize?

oliverkoehler avatar May 21 '23 21:05 oliverkoehler

What problem are you running into?

samrum avatar May 23 '23 02:05 samrum

The specified rights in the manifest file are not granted. You can test this with the rights: 'storage'.

Message ID: @.*** .com>

oliverkoehler avatar May 23 '23 06:05 oliverkoehler

I'm having a related problem, I think, when I add in string permissions to manifest.ts, in the sharedManifest object, I get an incompatible type error from within the getManifest function --- Type 'string' is not assignable to type 'ManifestPermissions'

Looking at the ManifestV3 object, the permissions property is locked for some reason, it's type is never[]

Is there a proper way to add permissions without manually typing them into the dist folder manifest?

andrei-g-git avatar Jun 08 '23 09:06 andrei-g-git

@andrei-g-git that's an unrelated issue. Set the type of sharedManifest to Partial<chrome.runtime.ManifestBase>. Fixed in [email protected]

samrum avatar Jun 09 '23 02:06 samrum

@oliverkoehler I'm not able to reproduce any issue with the storage permission. How are you attempting to use the storage API?

samrum avatar Jun 09 '23 02:06 samrum