Getting "Uncaught ReferenceError: undefinedbaseClamp is not defined" in webpack #464
Unanswered
joelabeyta
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I get this error kind of randomly. It also will go away sometimes after I run an npm install or npm update. I think it might be have something to do with how I'm importing stuff, but I can't pin down what the issue is. Here is my JS:
`import Scrollbar from 'smooth-scrollbar'
import { gsap } from "gsap"
import { ScrollTrigger } from "gsap/all"
import { ScrollToPlugin } from "gsap/all"
gsap.registerPlugin(ScrollTrigger)
gsap.registerPlugin(ScrollToPlugin)
const mainEl = document.querySelector('.smooth-scroll-main')
// only on the smooth scroll template
if (mainEl) {
// smooth scrolling
const mainElScrollBar = Scrollbar.init(mainEl, { damping: 0.05, delegateTo: document, alwaysShowTracks: false })
}`
Any help would be appreciated. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions