Closed grandslammer closed 3 years ago
Solved it:
In background.js, change line 5 from:
file: "content-script.js",
to:
file: "js/content-script.js",
The content script file path must be given from the extension root.
Hi :wave:
I think your issue is caused by this https://github.com/adambullmer/vue-cli-plugin-browser-extension/blob/master/generator/template/background/src/background.js#L10
And it seems that there is already an issue for that, see https://github.com/adambullmer/vue-cli-plugin-browser-extension/issues/95.
Opening a PR by changing file: 'content-script.js',
to file: 'js/content-script.js'
would be enough...
Thanks!
Thanks a lot, that helped
I've changed the file:
file: "content-script.js",
to:
file: "js/content-script.js",
And now I still get the uncaught in promise error, but my "Hello from background" just keeps looping. Any help would be appreciated!
Uncaught (in promise) error in background page console when I click the browser action button. Content script is also not executing. Fresh project, I literally just did:
installed the extension, clicked the extension button in Chrome, and checked the background console. I have retested several (created new projects) and it happens each time.