I am trying to setup Firebase in Chrome Extension MV3 and the import function is outputting:
Uncaught SyntaxError: Cannot use import statement outside a module
All the solutions on the internet discuss how you would fix it for normal web applications that can include "type"="module" into the tag of the html of the webpage. But with MV3 Chrome Extensions, the background page is now a service worker background.js.
I have also read that there should be a package.json file that indicates to my background.js script that I am importing modules, but I did not reach any useful milestone with this information.