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

TinyColor not getting exported when used in a electron app #223

Open
TaromaruYuki opened this issue Feb 27, 2021 · 3 comments
Open

TinyColor not getting exported when used in a electron app #223

TaromaruYuki opened this issue Feb 27, 2021 · 3 comments

Comments

@TaromaruYuki
Copy link

TaromaruYuki commented Feb 27, 2021

So im trying to load tinycolor in a electron app. I add the cdn link to my index.html, but when i go in the developer console, I get this error.
image

I also try accessing it from window.tinycolor, but that also isnt working.
Downloading tinycolor locally also does not work.

Why is this happening? Is there another way to load it?
It's working fine if I open in live server for example.

Im not using the node module, im just throwing the cdn in my html file.

@bgrins
Copy link
Owner

bgrins commented Feb 28, 2021

Can you send over the exact script tag you are using?

@TaromaruYuki
Copy link
Author

@bgrins The script tag I'm using is <script src="https://cdnjs.cloudflare.com/ajax/libs/tinycolor/1.4.2/tinycolor.min.js" integrity="sha512-+aXA9mgbUvFe0ToTlbt8/3vT7+nOgUmFw29wfFCsGoh8AZMRSU0p4WtOvC1vkF2JBrndPN2TuNZsHPAKPPxe8Q==" crossorigin="anonymous"></script> but I have also downloaded the dist js file, and neither work. I have other libraries that load in fine, but TinyColor is the only one that has not.

@TaromaruYuki
Copy link
Author

Update?

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