NODE | Require is not defined(Uncaught Reference Error)
-
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(); });
Here is the link to the post in StackOverflow.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.