Documentation for how to import Glider.js in modern ES6 environments
Opened this issue · 2 comments
Nefcanto commented
Hello
I want to use Glider.js in my Qwik application, but I can't find documentation on how to import it in my project. How should I import JS and CSS?
All of your documentation includes the old style <script />
and <link />
tags at the head.
Can you also include some examples for this purpose?
Thanks
revnandi commented
This worked for me
in js:
import Glider from 'glider-js';
in css
@import "glider-js/glider.min.css";
nicohery commented
I tried to use as recommended but I had this error :
TS2351: This expression is not constructable.
Type 'typeof Glider' has no construct signatures.
87 | import * as Glider from 'glider-js';
88 |
> 89 | new Glider(document.querySelector('.glider'));