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

Created on 12 Jun 2020  路  2Comments  路  Source: nuxt/typescript

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
bug types

Most helpful comment

Something coming up in the next minutes :)

All 2 comments

same here, thx @kevinmarrec for taking care! 馃憤

Something coming up in the next minutes :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

b-m-f picture b-m-f  路  6Comments

fy0 picture fy0  路  6Comments

stevenho0811 picture stevenho0811  路  3Comments

loha picture loha  路  5Comments

negezor picture negezor  路  6Comments