defineClientAppSetup Usage & Vue 3 TS Cannot Find Module Type Declaration #699
-
Hey guys, new here. I have two questions.
but it doesn't seem to resolve the Typescript issue when |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Fist of all, any vue using related issue are welcomed at vue forum or website like stackoverflow. And posing here is a bit out of topic. I am not sure getting what you wanna ask in your first question. It will be called during client app setup, and what you want to do depends on yourslef. You can register some action using And the second, I don't think vite will throw those issues, vite is using esbuild, and it does not have any static checking! If it's something your editor gives you, e.g. vscode, you will probably need a tsconfig.json to provide to your editor, so that they can read correct declaration files for their built-in typescript checker(or feature) to understand what If you have other vuepress related question, they are always welcomed.🙂 |
Beta Was this translation helpful? Give feedback.
Fist of all, any vue using related issue are welcomed at vue forum or website like stackoverflow. And posing here is a bit out of topic.
I am not sure getting what you wanna ask in your first question. It will be called during client app setup, and what you want to do depends on yourslef. You can register some action using
onMounted
and you can watch route path to do something, also you can provide global computed variables. It's totally up to you to call everything in client app setup function.And the second, I don't think vite will throw those issues, vite is using esbuild, and it does not have any static checking! If it's something your editor gives you, e.g. vscode, you will probably…