Closed dvdmlln closed 3 months ago
Hello,
I'm encountering errors in IDE with basic vue types like ref that I related here :
https://github.com/nuxt/starter/issues/615#issue-2068635541
The problem is present only for the code of the modules, not the playground.
Can this problem be related to this issue ?
@guirak This is deliberate - you need to explicitly import them from vue
or #imports
in your runtime module code.
@dvdmlln would you be able to provide a reproduction?
@guirak This is deliberate - you need to explicitly import them from
vue
or#imports
in your runtime module code.@dvdmlln would you be able to provide a reproduction?
Seems like the problem doesn't occur anymore with recent versions of module-builder and nuxt :thumbsup:
Thank you :)
Hi,
I recently upgraded
@nuxt/module-builder
and also updated thetsconfig.json
in my module to extend./.nuxt/tsconfig.json
instead of./playground/.nuxt/tsconfig.json
. However the./.nuxt/imports.d.ts
file is missing the auto imports declared in mymodule.ts
file. This leads to type errors, while there are no runtime errors because theimports.mjs
contains the entries missing in the types declarations. The./playground/.nuxt/imports.d.ts
file also contains the missing entries.Best regards David