question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vetur is not reading Vuetify type definition files from the right place

See original GitHub issue
  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: Linux
  • Vetur version: 0.22.0
  • VS Code version: 1.37.0

Problem

Vetur is unable to read Vuetify type definition files alacarte.d.ts, colors.d.ts, index.d.ts and lib.d.ts from their current location (node_modules/vuetify/types). Instead, it’s trying to read them from node_modules/vuetify/lib.

If I copy/symlink manually these files to node_modules/vuetify/lib, Vetur read them as expected, but vue-cli fails to build my project.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
nekosaurcommented, Oct 5, 2019

@octref this can be closed. It’s unrelated to vetur.

0reactions
patarapolwcommented, Nov 6, 2019

It seems to be relate to Vetur in that Vetur does not read tsconfig.json in the right place, when it is modified.

Also a bug on Vuetify part – https://github.com/vuetifyjs/vuetify/issues/3943

Currently, after tsconfig.json correction, there is this.$vuetify in main.ts, but not in App.vue.

Got a solution by modifying shims-vue.d.ts;

// declare module '*.vue' {
//   import Vue from 'vue'
//   export default Vue
// }

declare module '*.vue' {
  import  "vuetify"
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Vetur is not reading Vuetify type definition files ... - Issuehunt
It seems to be relate to Vetur in that Vetur does not read tsconfig.json in the right place, when it is modified. Also...
Read more >
vue.js - Vetur is not reading the function name correctly when ...
I was able to work around this issue today by either moving the click handler to the same line that the tag is...
Read more >
Frequently asked questions — Vuetify
My application is not working.​​ First, ensure that you're using the latest version of Vue. js and Vuetify. Try to reproduce it in...
Read more >
Vue JavaScript Tutorial in Visual Studio Code
For a richer Vue.js development environment, you can install the Vetur extension ... Put the cursor over the App , right click and...
Read more >
How to Setup Vue.js with VS Code and Fix Formatting and ES ...
When you create a Vue.js project with the Vue CLI or UI and select Prettier - you'll have a bunch of ES Lint...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found