-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
[Bug Report] No typings for import goTo function #9648
Comments
I have exactly the same error (I'm trying to use goTo with vue-router as described here: https://vuetifyjs.com/en/styles/scroll#using-with-router). Have you encountered this? Is this even possible or am I misunderstanding something, since this seems to be a TS specific error? |
If you're getting that exact error then you are using typescript. |
I have a similar problem without Typescript. I just import the code in my router like this:
This gives me the following error
|
Bug has resurfaced in new major version Environment
|
Can confirm I encountered the bug in
|
I'm also getting this bug with nuxt |
Me too. I use TS.
|
Can someone detail how to use the workaround? |
Environment
Vuetify Version: 2.1.9
Vue Version: 2.6.10
Browsers: Safari 13.0.3, Google Chrome, Mozilla Firefox, Safari, Microsoft Edge, Internet Explorer, Opera, Other
OS: Mac OS 10.14.6
Steps to reproduce
Just try to import goTo function from typescript:
import goTo from "vuetify/lib/services/goto";
Expected Behavior
successful import
Actual Behavior
TS Error:
Could not find a declaration file for module 'vuetify/lib/services/goto'
Reproduction Link
https://codesandbox.io/s/zen-taussig-3dwph
Other comments
Looks like type definition is missing.
Using this as workaround, in shims-vue.d.ts:
The text was updated successfully, but these errors were encountered: