Skip to content

Assets folder alias only working for built-in components #17097

Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by enricoKoschel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant