Hi All,
I’m trying to import this infinite-scroll.pkgd.js in my main.js. When I run yarn build or yard start I’m getting errors like this:
Module parse failed: Unexpected token (464:19)
You may need an appropriate loader to handle this file type.
| this.element = element;
| // options
| this.options = { …InfiniteScroll.defaults };
| this.option( options );
| // add jQuery
@ ./resources/assets/scripts/main.js 10:0-51
@ multi ./scripts/main.js ./styles/main.scss
Does anyone know how I can import this infinite-scroll with Sage 9?
Thank you!
Jayson