I built my extension on macOS and it worked fine, I came onto my Windows 11 PC to do some additional work and the extension didn't load. I took a look at other windows related issues in the repo but I think this might be different (apologies if I missed one and this is a dupe).
I did manage to find a work around by specifying the web_accessible_resources myself, I think the problem is the added backslashes. After adding the web resources myself and building this is the output manifest.json (note the backslashes):
"web_accessible_resources": [
// The one I manualled added
{
"resources": [
"content/subclass/subclass.js"
],
"matches": [
"https://rpgbot.net/*"
]
},
// Added by this plugin
{
"resources": [
"chunks\\*-*.js",
"content\\subclass\\subclass.js"
],
"matches": [
"https://rpgbot.net/*"
]
}
],
Denying load of chrome-extension://iciinnijjkdglbnmoiomknallfoagmkb/content/subclass/subclass.js. Resources must be listed in the web_accessible_resources manifest key in order to be loaded by pages outside the extension.
rpgbot.net/:1 Uncaught (in promise) TypeError: Failed to fetch dynamically imported module: chrome-extension://iciinnijjkdglbnmoiomknallfoagmkb/content/subclass/subclass.js
Build tool
Rollup
Where do you see the problem?
Describe the bug
I built my extension on macOS and it worked fine, I came onto my Windows 11 PC to do some additional work and the extension didn't load. I took a look at other windows related issues in the repo but I think this might be different (apologies if I missed one and this is a dupe).
I did manage to find a work around by specifying the web_accessible_resources myself, I think the problem is the added backslashes. After adding the web resources myself and building this is the output manifest.json (note the backslashes):
Reproduction
yarn dev
Logs
System Info
Severity
annoyance