Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Component from RouterView error when update vue-tsc #2030

Closed
gabrielmorais4 opened this issue Oct 17, 2022 · 3 comments
Closed

Component from RouterView error when update vue-tsc #2030

gabrielmorais4 opened this issue Oct 17, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@gabrielmorais4
Copy link

gabrielmorais4 commented Oct 17, 2022

Hello, I'm trying to update vue-tsc, but when it comes to the version 0.38.8 and higher versions, I'm having some error messages and I can't find a way to fix it!!!

Captura de tela de 2022-10-17 11-08-15

The Component comes from RouterView and the errors are:

Captura de tela de 2022-10-17 11-11-11

And the other ones happens when I try to build the project

Captura de tela de 2022-10-17 11-13-35

These are my dependencies:

Captura de tela de 2022-10-17 11-16-31

@johnsoncodehk
Copy link
Member

As a workaround, you can try:

<RouterView v-slot="{ Component: Foo, route: currentRoute }">
  ...
  <Component :is="Foo" ... />
</RouterView>

@johnsoncodehk johnsoncodehk added the bug Something isn't working label Oct 17, 2022
@gabrielmorais4
Copy link
Author

It works!!! Thanks 👍

@johnsoncodehk
Copy link
Member

Reopen this issue because it's a bug. 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants