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

WebPack issue #33

Open
al5dy opened this issue Jun 30, 2020 · 1 comment
Open

WebPack issue #33

al5dy opened this issue Jun 30, 2020 · 1 comment

Comments

@al5dy
Copy link

al5dy commented Jun 30, 2020

I use color picker with webpack + the following code in my js code:
import AColorPicker from 'a-color-picker'

But I get an error in my console:
AColorPicker is not defined

@danseciu
Copy link

I got the same error, however it does work if you import it like this:

import * as AColorPicker from "a-color-picker";

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