Currently, I am in the process of developing a cross-browser extension. One obstacle I have encountered is that Firefox does not yet support service workers, which are essential for Chrome. As a result, I conducted some tests in Chrome only to discover that when attempting to build the extension manifest, Parcel fails to resolve the service worker path:
It's worth noting that:
- The exact path functions properly when used as a background "script" within the same version of the manifest (3)
- All other paths (such as those for the options page and popup) share the same structure and are recognized without issue
An error message I encounter states:
It appears that the path resolution starts one directory above, causing it to miss the root of the project. Despite researching online, I have been unable to find a solution.
Do you have any insights on how to address this issue?
I attempted using absolute paths with no success. Various types of paths were also tested, all without success. It is crucial that the manifest can be built and bundled correctly.