victorgarciaesgi / nuxt-typed-router

🚦Provide autocompletion and typecheck to Nuxt router
https://nuxt-typed-router.vercel.app
MIT License
362 stars 12 forks source link

Type checking on `<nuxt-link>` not working when import from `#components` is present #109

Closed andreww2012 closed 1 year ago

andreww2012 commented 1 year ago

Describe the bug Type checking of <nuxt-link>'s to prop stops working if an import statement from #components is present in SFC, but only after running nuxt dev.

Expected behavior Errors are not ignored.

Environnement infos

Nuxi 3.6.5                                                                                                                                                                                                                                                                                            
- Operating System: Windows_NT
- Node Version:     v16.16.0
- Nuxt Version:     3.6.5
- Nitro Version:    2.5.2
- Package Manager:  pnpm@8.6.10
- Builder:          vite
- User Config:      devtools, modules, imports
- Runtime Modules:  nuxt-typed-router@3.2.5
- Build Modules:    -

Your pages folder structure Your nuxt.config.ts

Reproduction with instructions: https://github.com/andreww2012/nuxt-typed-router-no-errors-when-adding-components-import

victorgarciaesgi commented 1 year ago

I see, the native definition of NuxtLink should be removed by Nuxt-typed-router. I'll look at it

victorgarciaesgi commented 1 year ago

Fixed in 3.3.1 @andreww2012 , keep me updated!

andreww2012 commented 1 year ago

Thank you, it's working now! 🥇