Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webextension managed storage #7808

Closed
flo-pereira opened this issue Mar 8, 2022 · 1 comment 路 Fixed by #7050
Closed

Webextension managed storage #7808

flo-pereira opened this issue Mar 8, 2022 · 1 comment 路 Fixed by #7050

Comments

@flo-pereira
Copy link

flo-pereira commented Mar 8, 2022

馃悰 bug report

I tried to setup a managed storage (https://developer.chrome.com/docs/extensions/reference/storage/)

// manifest.json
"storage": {
    "managed_schema": "schema.json"
  },

but my schema.json is compiled to a schema.js and in the manifest is changed to

"storage": {
    "managed_schema": "/schema.js"
  },

two issue there, the first is that managed_schema should'nt have the leading slash

Extension failed to load: storage.managed_schema must be a relative path without ..

and the second is that the json file should only be copy as is because managed_schema does not support js file

Extension failed to load: Line: 1, column: 1, Unexpected token.

馃 Expected Behavior

/schema.js -> schema.json

馃實 Your Environment

"@parcel/config-webextension": "2.3.2",
"@parcel/config-default": "2.3.2",
"parcel": "2.3.2"

Is this realy an issue or I missed something ?

thanks.

@101arrowz
Copy link
Member

This is an issue but should be fixed in #7050.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants