I am building a symfony web app and using Webpack Encore to compile VUE components for the frontend.
In the vue component i am trying to load an image which gives me errors whatever i do and its not loading.
:src="require('../../assets/images/logo-white.png').default"
:src="'../../assets/images/logo-white.png'"
src="../../assets/images/logo-white.png"
or :src="require('../../assets/images/logo-white.png')"
I tried many more and i also tried to change webpack configuration setting esModule to false.
This is my project structure:
So the image is being built successfully.
Please Help.
I added the following to .htaccess file
RewriteCond %{REQUEST_URI} app_dev.php/build/*
RewriteRule ^app_dev.php/(.*) $1