Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for how to import Glider.js in modern ES6 environments #253

Open
Nefcanto opened this issue Jun 12, 2023 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@Nefcanto
Copy link

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
Copy link

This worked for me

in js:

import Glider from 'glider-js';

in css

@import "glider-js/glider.min.css";

@NickPiscitelli NickPiscitelli added the enhancement New feature or request label Jul 27, 2023
@nicohery
Copy link

nicohery commented Nov 22, 2023

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'));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants