-
Notifications
You must be signed in to change notification settings - Fork 122
Closed
Labels
bugSomething isn't workingSomething isn't workingtypesThe issue or pull request is related to `types` packageThe issue or pull request is related to `types` package
Description
https://github.com/vuejs/vue-router/pull/3218/files
they changed the export of RouterConfig in a patch version (3.3.2 -> 3.3.3) which breaks nuxt/types due to the reason that components is selected from RouteConfig.
To Reproduce
Install vue-router 3.3.3 and try to compile a nuxt with typescript.
"Property component does not exist on RouterConfig"
Expected behavior
Do not break.
Screenshots
If applicable, add screenshots to help explain your problem.
Possible fix
either try to get SingleRouterConfig exported and select this one, or define component by our own:
import Vue, { ComponentOptions, PluginFunction, AsyncComponent } from 'vue' import Vue, { ComponentOptions, PluginFunction, AsyncComponent } from 'vue'
type Component = ComponentOptions<Vue> | typeof Vue | AsyncComponent
xavism, mheob, frck006, mkitzmann, crbast and 1 more
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingtypesThe issue or pull request is related to `types` packageThe issue or pull request is related to `types` package