-
-
Notifications
You must be signed in to change notification settings - Fork 927
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
Type conflict, how to increase weight #397
Comments
Did you ever solve this? I am getting the same issue. |
+1, another workaround is adding |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
After I download the template, I execute the
ni
command to install the relevant dependencies of the template After installation, add the following code to<script>
ofApp.vue
When using
$()
to convertRef
to reactive variables, the type of$()
is overwritten by the type ofjquery
incypress
I was looking at
tsconfig.ts
and found that the type ofcypress
package was excluded and only included intsconfig.ts
inside the/cypress
folder, but this doesn't seem to work, invue
vscode
in the file still recognizes the type ofcypress
package, I don't know what's going on here.I tried uninstalling the
cypress
package to test if the conflict was really caused by thecypress
package, which turned out to be correct.While the solution works, I need to use the
cypress
package in my project to test my project, so I can't live without it.I try to use
xxx as unknown as number
to assert the transformed variable before using it, it works, but if I need to assert every time I use it, it will increase the burden on my coding mind, I am eager Solve the conflict problem once and for all from a global perspective.What should I do please?
Reproduction
https://github.com/jiangmaniu/vitesse-type-conflict-repo
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: