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
Cannot read property 'insertBefore' of undefined #24
Comments
I went over to www.gethalfmoon.com/docs and pasted your code in the browser console. This code:
The code worked and a toast was generated. Are you sure you are importing |
Could you, maybe share a link of your website (if it has been hosted anywhere)? |
@halfmoonui Yes, I referenced |
Fixed by referencing Halfmoon at the bottom of the |
@Meaxis I tried referencing Halfmoon at the bottom of the tag but I'm still getting the same error. Can you elaborate? I feel like I'm missing something |
GitHub removed bare HTML tags I think. I referenced halfmoon.js in the |
Nevermind! I am incapable of reading the docs! :D
|
Oh, thought you didn't understand what I said because I mostly read replies in email and comment back on GitHub (so no markdown). Glad I may have helped! |
Ah, hahah no you are right. Initially I was asking for clarification, but turns out I was just missing that div |
I wanted to use Sticky Alerts, but I got an error. Here's what I got:
Cannot read property 'insertBefore' of undefined TypeError: Cannot read property 'insertBefore' of undefined
at Object.initStickyAlert
My code:
In my HTML, I have the StickyAlerts.
The text was updated successfully, but these errors were encountered: