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
An image with a dynamic src attribute will not work, for example : <img :src="imgPath" />
In Nuxt 2 the fix was to use require(imgPath) around the variable, but it does not exist under Nuxt 3 and the import(imgPath) or import.meta.globEager(imgPath) don't work too.
There was already a discussion about this but no issue, that's why I'm creating it.
Thank you for the great work with Nuxt 3 🙏
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Linux
v16.13.1
3.0.0-27366343.1d741cb
yarn@1.22.17
Vite
css
,build
-
-
Reproduction
https://codesandbox.io/s/competent-monad-2dhl6?file=/app.vue
Describe the bug
An image with a dynamic src attribute will not work, for example :
<img :src="imgPath" />
In Nuxt 2 the fix was to use
require(imgPath)
around the variable, but it does not exist under Nuxt 3 and theimport(imgPath)
orimport.meta.globEager(imgPath)
don't work too.There was already a discussion about this but no issue, that's why I'm creating it.
Thank you for the great work with Nuxt 3 🙏
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: