Closed JacobDB closed 6 years ago
Figured it out, I'm just new to this whole import thing. I just needed to change import OSREC from "superslide.js";
to import SuperSlide from "superslide.js";
, and OSREC.superslide
to SuperSlide
. Works great now!
This looks awesome, and I'm trying to add it to my personal framework, but I'm running in to an odd issue that I can't seem to track down. I keep getting the error in the title, not sure what I'm doing wrong. I'm using webpack, initializing the script with:
#page-container
and#mobile-menu
both exist, andconsole.log(OSREC)
outputsfunction superslide()
, so I don't see what could be the problem. The only difference I'm seeing between my code and your example code is that I'm importingOSREC
rather than including the script on the page.Any help figuring out why this won't work would be appreciated.