Open pascaliii opened 2 years ago
Hi, i would like to use Asscroll in my Next.js project. When i use the "zero config setup", it throws the error "Self is not defined". I tried to use dynamic imports and set asscroll-container="true", but its not fixing the problem.
asscroll-container="true"
Does anyone know any other solutions?
I had the same issue
Import like that inside your useEffect :
const ASScroll = require("@ashthornton/asscroll"); const asscroll = new ASScroll();
Hi, i would like to use Asscroll in my Next.js project. When i use the "zero config setup", it throws the error "Self is not defined". I tried to use dynamic imports and set
asscroll-container="true"
, but its not fixing the problem.Does anyone know any other solutions?