-
Notifications
You must be signed in to change notification settings - Fork 195
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reading manifest: Error processing background #813
Comments
Okay, so I just found the problem: Crxjs uses background service workers, which are unsupported in Firefox. |
Really ?? I could have sworn it supported service workers at some point |
if you use manifest.config.ts to define and export manifest.config.jsonsee here, you can follow @crxjs/vite-plugin/dist/index.d.ts and find background key requirement. interface ManifestV3 {
...
background?: ChromeManifestBackground | FirefoxManifestBackground | undefined;
} interface FirefoxManifestBackground {
scripts: string[];
persistent?: false;
} |
This is correct, i tested by removing before removing after removing in order to fix importing in firefox however we need to do something about the |
Build tool
Vite
Where do you see the problem?
Describe the bug
When loading the example Vite project into Firefox, I get this error:
Reproduction
Repro: https://github.com/SkyfallWasTaken/airhorn-ext
about:debugging#/runtime/this-firefox
in Firefoxmanifest.json
fileLogs
System Info
(note that I'm using Bun 1.0.7 to run everything, not Node 1 😅)
Severity
blocking all usage of RPCE
The text was updated successfully, but these errors were encountered: