-
-
Notifications
You must be signed in to change notification settings - Fork 285
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
Help getting set up #312
Comments
It works in dev (after adding more options to |
I also tried using it via CDN but I get |
After another while, I found that no matter what I did it would still give this error and only removing Additionally, I spent a while trying to get the conversion figured out, but I can't figure out how one is supposed to use it. I tried using:
but either of them have anything. I'm wondering if this is broken and also if this should be documented better. I'd be willing to submit a PR to improve readability of the readme if you're interested : ) |
@justingolden21 did you find any fix for it? |
I think I used dino color picker tbh |
This is still a problem in Vue as weell |
Closed due to inactivity. Please create a new issue if you believe this is a mistake :) Might be fixed with the upcoming patch release. |
Recently, I'm trying to use Pikcr in my website which is powered by Vitepress and I also found this problem. let Pickr = null;
onMounted( async () => {
if (typeof window !== 'undefined') {
import('@simonwep/pickr')
.then(module => {
Pickr = module.default;
initializePickr(); // init Pickr
//other code
})
.catch(error => {
console.error('Failed to load Pickr:', error)
})
}
}); see my website, it is work fine! |
AI helped me solve the problem! see my website, it is work fine! let Pickr = null;
onMounted( async () => {
if (typeof window !== 'undefined') {
import('@simonwep/pickr')
.then(module => {
Pickr = module.default;
initializePickr(); // init Pickr
//other code
})
.catch(error => {
console.error('Failed to load Pickr:', error)
})
}
}); |
Hi, I've been trying to use this color picker (which seems awesome) for over an hour now and figured I'd just make a ticket.
I ran
npm install @simonwep/pickr
and tried importing it both:and
import Pickr from '@simonwep/pickr';
and neither seemed to work.My code for the picker:
I would get
and
and sometimes an error on page, sometimes a white screen
I searched the readme and other files here far and wide as well as your website and the issues here and couldn't find a single example of just setting up the color picker to work.
I found this question which led me on to using
onMount
(I'm using svelte) and my color picker FINALLY renders after an hour of struggles, but when I open it, I get:No errors or warnings or anything.
I checked the terminal output and I see:
I'm wondering if I'm doing something wrong or if it just doesn't work with svelte. Also, I highly, highly recommend having a single three or four lines on how to actually initialize the picker / get a basic "hello world" picker with absolute minimum settings. I was surprised and disappointed to not find this.
This project looks really awesome, can't wait to eventually start using it. Thanks in advance.
The text was updated successfully, but these errors were encountered: