Closed MagnusJohansson closed 3 years ago
Hey @MagnusJohansson,
Sorry for the late reply. The issue is with importing CSS files.
Try importing CSS files after JS imports
<script lang="ts">
import Lightgallery from "lightgallery/vue";
import lgThumbnail from "lightgallery/plugins/thumbnail";
import lgZoom from "lightgallery/plugins/zoom";
import 'lightgallery/css/lightgallery.css';
import 'lightgallery/css/lg-thumbnail.css';
import "lightgallery/css/lg-zoom.css";
export default {
components: { Lightgallery },
name: "HelloWorld",
data: () => ({
plugins: [lgThumbnail, lgZoom],
}),
methods: {
onInit: () => {
console.log("lightGallery has been initialized");
},
onBeforeSlide: () => {
console.log("calling before slide");
},
},
props: {
msg: String,
},
};
</script>
I'll update the docs
please re-open if the issue persists
Description
I must be a noob but I can't get this component to work following the documentation.
Creating a simple demo app based on the documentation generates this error:
Steps to reproduce
Expected result
I expect it to compile.
Actual result
(See error above)
Additional context
package.json
HelloWorld.vue: