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

Add documentation for module import #3

Open
garak opened this issue Jan 27, 2022 · 3 comments
Open

Add documentation for module import #3

garak opened this issue Jan 27, 2022 · 3 comments

Comments

@garak
Copy link

garak commented Jan 27, 2022

I added package to my package.json, and I tried the following (as alternative, not all at the same time):

import dselect from "@jarstone/dselect/dist/js/dselect";
import from "@jarstone/dselect/dist/js/dselect";
import from "@jarstone/dselect/dist/js/dselect.min";
import from "@jarstone/dselect/source/js/dselect";

none is working. When I do

dselect(document.querySelector("my-selector"));

I get dselect is not defined error.

Webpack compiles successfully, no errors.

What am I doing wrong?

@walker-ai
Copy link

@garak Hi,I encountered the same problem, how did you solve it?

@garak
Copy link
Author

garak commented Apr 29, 2023

I gave up and ended using tom-select instead

@walker-ai
Copy link

@garak thanks, I will try that

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

No branches or pull requests

2 participants