You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to create a custom image provider with @nuxt/image in a Nuxt 4 project, an import error occurs while trying to import createOperationsGenerator and defineProvider from @nuxt/image/runtime. The error is as follows:
[plugin:vite:import-analysis] Missing "./runtime" specifier in "@nuxt/image" package
D:/Project/my-frontend/providers/my-provider.ts:2:58
1 | import { joinURL } from "ufo";
2 | import { createOperationsGenerator, defineProvider } from "@nuxt/image/runtime";
| ^
3 |
4 | import { useRuntimeConfig } from '#app/nuxt';
davidurco, caroillemann, lennartzellmer and EnjoyKojima