Nathan Chase
Nathan Chase
I have the same issue. I'd like to use the `placeholder` attribute of `NuxtImg`, but then have the actual loaded image fade in when it has loaded, rather than "pop"...
> Hi Nathan, what version are you using of nuxt and nuxt image? nuxt: 3.8.0 @nuxt/image: 1.0.0
Seems like Vue 3's `defineExpose` might be a possibility? https://vuejs.org/api/sfc-script-setup.html#defineexpose To explicitly expose properties in a component, use the defineExpose compiler macro: ``` import { ref } from 'vue' const...
What about a hypothetical syntax like this? ```js const props = defineProps(); ```
I found this out recently as well. If I have this in my nuxt.config: ```js image: { provider: import.meta.env.NUXT_PUBLIC_IMAGE_PROVIDER, } ``` it doesn't matter what I set that env var...
Ok, I've updated the PR to preserve type-safety based on the selected provider. Please review and let me know what you think! Thanks, @danielroe!
Can confirm that: `"@nuxt/image": "2.0.0-alpha.1"` with ``` "overrides": { "sharp": "0.33.4", } ``` worked for me!