Open maximelafarie opened 4 years ago
While running code in content_script.js file, I get the following error in page where the extension runs : ReferenceError: $ is not defined.
content_script.js
ReferenceError: $ is not defined
I didn't changed anything in the default package.json file, and the manifest file look like this:
package.json
"content_scripts": [ { "matches": ["*://*.domain.com/*"], "js": ["js/vendor.js", "js/content_script.js"] } ],
Please note that the extension is running in dev watch mode.
Cheers! 🖖
did you have import * as $ from 'jquery' in the ts file where you use jquery?
import * as $ from 'jquery'
While running code in
content_script.js
file, I get the following error in page where the extension runs :ReferenceError: $ is not defined
.I didn't changed anything in the default
package.json
file, and the manifest file look like this:Please note that the extension is running in dev watch mode.
Cheers! 🖖