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

Nuxt typed router nuxtconfig error (since v2.3.0) #66

Closed
ThimoDEV opened this issue Feb 8, 2023 · 13 comments
Closed

Nuxt typed router nuxtconfig error (since v2.3.0) #66

ThimoDEV opened this issue Feb 8, 2023 · 13 comments

Comments

@ThimoDEV
Copy link

ThimoDEV commented Feb 8, 2023

Since version 2.3.0 I get the following error in my nuxt config:

Type instantiation is excessively deep and possibly infinite

image

I used nuxt v3.1.2 for this. It also happened in version 3.1.1

@victorgarciaesgi
Copy link
Owner

Hi! It's weird, are you sure it's related to nuxt-typed-router?
Did you run nuxt prepare?
Do you have a reproduction? :)

@ThimoDEV
Copy link
Author

ThimoDEV commented Feb 9, 2023

When I removed nuxt-typed-router it solved the issue yes. I can get you a reproduction later this day :)

@victorgarciaesgi
Copy link
Owner

Yep I would love to! I can't reproduce it with any of internal projects.
Is the error style here if there is no other module present?

@ThimoDEV
Copy link
Author

ThimoDEV commented Feb 9, 2023

https://github.com/ThimoDEV/nuxt3-tailwind-warning-content/tree/nuxt-hydrated-error

Don't mind the repo name, I used it for other issues I encountered. This repo has only nuxt and nuxt typed router. After yarn install I get the error

@victorgarciaesgi
Copy link
Owner

I reproduce it without installing nuxt-typed-router, seems like either a problem with @nuxtjs/tailwindcss or a config problem
image

@jmbdx
Copy link

jmbdx commented Feb 10, 2023

Hi there!

Got the same problem since i upgraded nuxt to last versions (tried with v3.1.* and v3.2)

I tried to reproduce it in a stackblitz env, declaring tailwindcss as a modules appears to be ok... that is not the case of nuxt-typed-router.

Reproduction link

@victorgarciaesgi
Copy link
Owner

Thanks for the repro! I will investigate, but I think It's related to Nuxt types :(

@victorgarciaesgi
Copy link
Owner

Have you tried with 3.2.0 ?

@jmbdx
Copy link

jmbdx commented Feb 10, 2023

Yes, think so. The issue appears when we upgrade from 3.0.0...
As I said, tried with 3.1.* & 3.2.0 (both locally and on stackblitz)

Btw you're the only one who provide type-safe routing in Nuxt/Vue env.
So thanks for that.

@victorgarciaesgi
Copy link
Owner

Thanks! :D
And can't reproduce it with my playground 😩
https://stackblitz.com/edit/github-7e4xvw?file=nuxt.config.ts

(BTW I have path autocomplete nearly ready for a next version)

@victorgarciaesgi
Copy link
Owner

I may have something I will test on the beta channel

@victorgarciaesgi
Copy link
Owner

Ok you can test with v2.3.4, it should be fixed!
Thanks again for reporting :)

@ThimoDEV
Copy link
Author

I just tried it with the latest nuxt version and the latest nuxt typed router release and its working on my end. Thanks for the quick fix! <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants