Assets folder alias only working for built-in components #17097
-
I have a problem with Quasar v2 (project using Quasar CLI and @quasar/app-vite). Let's say I want to access the image But as soon as I use a component that I wrote like this: If I name my own component I tried to use the path I also tried to use the I have been googling, searching through github issues, Quasar documentation and Stack Overflow for the last 2 hours and I dont know what to do anymore. I would appreciate it if someone could help me out. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I have found a workaround on this page https://vitejs.dev/guide/assets. Importing the image like so |
Beta Was this translation helpful? Give feedback.
I have found a workaround on this page https://vitejs.dev/guide/assets.
Importing the image like so
import image from 'assets/test.png';
seems to work fine on all routes and components.