Skip to content

vue-router 3.3.3 breaks nuxt/types: Property component does not exist on RouterConfig #374

@j1gs4w

Description

@j1gs4w

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.
image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtypesThe issue or pull request is related to `types` package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions