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

Trouble in initializing zoom in Vue #136

Open
yoshikev opened this issue Jun 19, 2018 · 5 comments
Open

Trouble in initializing zoom in Vue #136

yoshikev opened this issue Jun 19, 2018 · 5 comments

Comments

@yoshikev
Copy link

Hi,

I tried to import jqyuery zoom into my vue project.
it prompt this error when i try to initalized the zoom :
TypeError: $(...)._ready is not a function

Please help me to find out if it works well with vue.
Thank you

@yoshikev
Copy link
Author

screen shot 2018-06-20 at 1 38 21 am

Sorry i forgot to attached

@jackmoore
Copy link
Owner

Sorry, I don't know much about Vue. The _ready method is new to me, the underscore probably indicates it's a private method, not something that zoom would have intentionally called.

I would check that the $ aliases the same object that the required script is referencing for jQuery, but that's probably not the issue because that error would be something like $(...).zoom is not a function.

@yoshikev
Copy link
Author

when i remove the _ready() function, TypeError: $(...).zoom is not a function error is out.

@jackmoore
Copy link
Owner

Sound like when the zoom package was required it did not extend the same jQuery object that you are referencing when you type $('.zoom'). Try replacing the $ alias with jQuery first, and if that doesn't work, you'll probably have to have a look at the file you are requiring to see how it's referencing jQuery.

@yoshikev
Copy link
Author

Thank you.
Will try it and update u if i manage to get it.

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