Open cexbrayat opened 4 years ago
Shims are required for routers. A working version can be copied from https://github.com/vuejs/vue-router-next/blob/master/playground/shim.d.ts
@ishitatsuyuki I'm not sure you need the shims. I have a project with Vue 3.0.0-alpha.12, Vue Router 4.0.0-alpha.5, using TypeScript and the Vue CLI, and I don't need them.
Okay, “required” might have been vague here. The shims are needed for code assistance, otherwise Visual Studio Code will give red lines for component imports.
webpack build will complete without them.
Thank you for making this plugin.
It is currently usable with the TypeScript CLI plugin, but requires a few changes in the generated project:
The changes needed are in this commit.
Here is a list:
App
component to usedefineComponent
Is it something that the plugin could handle? Or do you have in mind to create another plugin for the TS version?