Closed cjpearson closed 1 month ago
I don't know if it's related, but in 1.7.1 my images no longer have the width and height attributes.
This was removed from @nuxt/module-builder
output and should be added instead by .nuxt/types/schema.d.ts
. What version of Nuxt are you on?
Would you be able to provide a reproduction? 🙏
We're using nuxt@3.11.2
The error occurs in an app-local module, so I've made a small reproduction app with a local module.
https://github.com/cjpearson/nuxt-image-types
The type error is in modules/my-module/index.ts
and disappears once @nuxt/image
is downgraded to 1.7.0
The following exists in
dist/types.d.ts
for 1.7.0 but is missing in the same file for 1.7.1This causes a type error when a setup function tries to modify the Nuxt Image config.