Closed kytosai closed 4 years ago
Same here, I am using "webpack": "^4.16.5"
I keep reading this Waypoints library isn't compatible with Webpack. Still true?
Change import Waypoint from 'waypoints'
to import waypoint from 'waypoints'
.
As stated in error message - it's not a constructor it's already compiled library, You cannot use it this way. But by attaching script to your page it makes constructor globally accessible on the page.
/ global Waypoint / import 'waypoints/lib/jquery.waypoints.min.js';
When i import waypoints
Console log error
Please help me fix it