chibat / chrome-extension-typescript-starter

Chrome Extension TypeScript Starter
MIT License
2.39k stars 403 forks source link

ReferenceError: $ is not defined in content_script.js #12

Open maximelafarie opened 4 years ago

maximelafarie commented 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.

I didn't changed anything in the default package.json file, and the manifest file look like this:

 "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! 🖖

wunaidage commented 4 years ago

did you have import * as $ from 'jquery' in the ts file where you use jquery?