This new version 3 is making my development process very difficult. I am fetching a page HTML in background.js and now I want to perform certain operations like fetching links based on className etc. I tried to load jQuery but it gives error:
bg-loader.js:4 TypeError: Cannot read properties of undefined (reading 'createElement')
at ce (jquery.js:2:7312)
at jquery.js:2:23143
at jquery.js:2:23839
at jquery.js:2:220
at jquery.js:2:225
at bg-loader.js:2:5
I use the following code in bg-loader.js:
importScripts('jquery.js', 'background.js' /*, and so on */);