0👍
✅
Maybe the scrollmagic package doesn’t export a variable or function ScrollMagic
, so it keeps getting undefined?
Have you tried:
import * as ScrollMagic from 'scrollmagic';
// OR
import ScrollMagic from 'scrollmagic';
Source:stackexchange.com