# Can't use a simple JS component from github?

**URL:** <https://community.weweb.io/t/cant-use-a-simple-js-component-from-github/10739>\
**Category:** How do I?\
**Created:** [September 10, 2024, 7:16pm UTC](https://community.weweb.io/t/cant-use-a-simple-js-component-from-github/10739 "2024-09-10T19:16:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![harleying](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/harleying/32/10741_2.png) [@harleying](https://community.weweb.io/u/harleying)\
**Post date:** [September 10, 2024, 7:16pm UTC](https://community.weweb.io/t/cant-use-a-simple-js-component-from-github/10739/1 "2024-09-10T19:16:36Z")

</div>

_Very_ inexperienced with code here, I’m trying to insert what I think is a super simple [github component](https://github.com/CrazyTim/spin-wheel) into my site and I can’t figure out how. Nobody else seems to have a problem with it so I think I’m just missing something REALLY obvious, any help is appreciated as I’ve spent hours on this tiny thing ☹

Attempted:

- Using the script src/import-as-module installs as custom code in the head/body
- Using those as workflows on app page load
- Above, except using [Statechange’s](https://weweb-embed.statechange.ai/) WeWeb Embed

Both the workflows “succeed” when tested, but when published Google Chrome flags that “Wheel” is not defined, as if it’s not importing the script - but from the Network tab it looks like it is.

I then just forked the github and imported that fork as a custom component (element), but then drag and drop does nothing. (No error code or anything, it actually bugs out and stops me from drag and dropping anything else until I refresh.)

I’m ABSOLUTELY missing something that must be super simple, is anyone able to help? Thanks so much.
