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

jQuery instance ($) is being overwritten by this package #179

Open
timsayshey opened this issue Apr 26, 2022 · 1 comment
Open

jQuery instance ($) is being overwritten by this package #179

timsayshey opened this issue Apr 26, 2022 · 1 comment

Comments

@timsayshey
Copy link

I'm using this on a legacy project and for some reason it is overwriting the $ variable which is used by jQuery. This is breaking our project. Can you switch to something else or constrain it to the project, instead of setting it globally?

image

@omgovich
Copy link
Owner

Hi! Sorry for the delay. May I ask how you import this file to your application? index.module.js is a module script (expected to be imported by import { x } from 'x'), which means it has its own variables scope.

Read more here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules

image

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