Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
maximelafarie opened this issue Aug 22, 2019 · 1 comment
Open

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

maximelafarie opened this issue Aug 22, 2019 · 1 comment

Comments

@maximelafarie
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants