Hello,
I've been developing a page with glide.js in WordPress. After I've included the needed JS Files in functions.php, I have seen that in my console it says "Uncaught ReferenceError: require is not defined." What can I do to make the site that works on the client/side browser either? Here is the main.js file's code.
Thanks in advance,
document.addEventListener("DOMContentLoaded", () => {
new Glide(".glide", {
type: "carousel",
startAt: 0,
animationTimingFunc: "ease-in-out",
gap: 100,
perView: 3
}).mount();
});
EDIT: And the glide.min.js file's code starts like this-->
const { Alert } = require("bootstrap");