Kopyl Maksym

Results 9 comments of Kopyl Maksym

Today I reinstalled node_modules and package-lock.json and caught type errors in all my templates, $t, $router and all auto-import components. this.$t also catch type error. In localhost all autoimorted components...

I tried to reproduce but caught other error, dependancy error. [https://github.com/nuxt/nuxt/issues/28755](url) I will try to reproduce error with type again

[nuxt-autocomplit-type-error.zip](https://github.com/user-attachments/files/16806503/nuxt-autocomplit-type-error.zip) There is reprodus the proble with types and NuxtLayout

I'v removed @vite-pwa/nuxt from modules in nuxt config in my reporuction project and problem with type disappeared. But this removing didn't help in my main project.

I also caught this error when add to nuxt.config.ts ``` typescript: { typeCheck: true, }, ``` ![image](https://github.com/user-attachments/assets/a016e3cf-34d6-4493-a10c-c3fa76d4970e)

I added this code to **nuxt-shim.d.ts** file in my reproduction project and error showed again ``` declare module '@vue/runtime-core' { interface ComponentCustomProperties { $test: string; } } ``` But in...

I fined this declare in my main project and problem with types disappeared ``` declare module '@vue/runtime-core' { interface ComponentCustomProperties { $breakpoint: BreakpointI; $iMask: IMaskI; } } ```

@danielroe it looks like modifire of ComponentCustomProperties in @vue/runtime-core is crashing types May I create new discusion in vue github or it's nuxt problem ?

npm install @nuxt/test-utils --legacy-peer-deps Helped me