N
Nuxt3y ago
Zampa

Nuxt Image module can't be configured in Nuxt 3

When using the @nuxt/image-edge module, it appears that adding an image config section is throwing a TypeScript error in nuxt.config.ts: Object literal may only specify known properties, and 'image' does not exist in type 'NuxtConfig'.ts(2345) I've cross-posted it to https://github.com/nuxt/image/issues/650
GitHub
'image' does not exist in type 'NuxtConfig' [TS] · Issue #650 · nux...
Getting this TypeScript error when attempting to add an image configuration section to my nuxt.config.ts in Nuxt 3: Object literal may only specify known properties, and 'image' doe...
No description
3 Replies
Zampa
ZampaOP3y ago
Are you using "nuxt": "latest",?
Zampa
ZampaOP3y ago
ok it works now there - but still doesn't locally - I think it must be with how pnpm is resolving things StackBlitz automatically uses npm so hard to reproduce the problem everything is in devDependencies in Nuxt 3 I copied it to a completely new repo and it's fine... I can't figure out what's causing it OH. It's Volar Takeover mode. It's using an older version of Typescript ugh well, no - that's not it either it still errors even with the newer version
Want results from more Discord servers?
Add your server