I have created customer provider file accroding nuxt image documentation but got thid error
module '"#image"' has no exported member 'defineProvider'
import { joinURL } from 'ufo'
import { createOperationsGenerator, defineProvider } from '#image'
const operationsGenerator = createOperationsGenerator()
export default defineProvider<{ baseURL?: string }>({
getImage (src, { modifiers, baseURL }) => {
if (!baseURL) {
// also support runtime config
baseURL = useRuntimeConfig().public.siteUrl
}
const operations = operationsGenerator(modifiers)
return {
url: joinURL(baseURL, src + (operations ? '?' + operations : ''))
}
}
})