Open Uhasith opened 7 months ago
I have the same problem. Don't know how to fix it yet.
EDIT:
To fix it, remove the resolve.alias
'vue-easy-lightbox': 'vue-easy-lightbox/dist/external-css/vue-easy-lightbox.esm.min.js'
in vite.config.js, and add @import to your scss file
@import 'vue-easy-lightbox/dist/external-css/vue-easy-lightbox';
I have the same problem. Don't know how to fix it yet.
EDIT: To fix it, remove the resolve.alias
'vue-easy-lightbox': 'vue-easy-lightbox/dist/external-css/vue-easy-lightbox.esm.min.js'
in vite.config.js, and add @import to your scss file@import 'vue-easy-lightbox/dist/external-css/vue-easy-lightbox';
@Uhasith
If you are using external-css build, remove the resolve.alias 'vue-easy-lightbox': 'vue-easy-lightbox/dist/external-css/vue-easy-lightbox.esm.min.js'
in vite.config.js.
And put this in main.js/app.js :
// for external-build
import vue-easy-lightbox from 'vue-easy-lightbox/external-css'
import 'vue-easy-lightbox/external-css/vue-easy-lightbox.css'
// or add @import in your style file
// @import 'vue-easy-lightbox/dist/external-css/vue-easy-lightbox';
I did configure this on
app.js
andvite.config.js
but CSS not working.