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 type conflict #637
Comments
This comment was marked as off-topic.
This comment was marked as off-topic.
This is false. There's a "destructuring" macro, documented here. I'm not sure why they went with What's also interesting is this TypeScript error is occuring in a |
This comment was marked as off-topic.
This comment was marked as off-topic.
@dosubot I'm not able to do the suggested code changes because I'm using Nuxt, where you can't change the |
This comment was marked as off-topic.
This comment was marked as off-topic.
@dosubot Nope, that 100% does not work. It seems the only thing that works is |
This comment was marked as off-topic.
This comment was marked as off-topic.
Could you please provide a reproduction? |
Describe the bug
Not sure why this is only turning up now (maybe a package update?), but Vue Macros' type definition is over-writing jQuery type definitions.
Specifically, I'm now seeing TypeScript errors for lines like
$.getJSON
. When I click on the$
, whereas I used to getJQueryStatic
, now it links to:Note: this happens even though I'm explicitly importing
$
from 'jquery'. Is there a way to remove the global$
from vue-macros?Reproduction
N/A -- isn't a runtime issue
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: