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

Cannot read property 'appendChild' of null #152

Open
team-btg opened this issue Nov 30, 2017 · 4 comments
Open

Cannot read property 'appendChild' of null #152

team-btg opened this issue Nov 30, 2017 · 4 comments

Comments

@team-btg
Copy link

I have a MVC project created in Visual Studio, but when I import the alertify.js and trying the basic
alertify.log("Standard log message"); I've got this error message.

Cannot read property 'appendChild' of null at Object.setupLogContainer (alertify.js:188) at Object.notify (alertify.js:213) at Object.log (alertify.js:174) at Object.log (alertify.js:455) at assign_back (serviceentry:721)

What should I checked? I'm using the current version from here: https://alertifyjs.org/

@aleor
Copy link

aleor commented Dec 17, 2017

Had the same issue, placing script inside tag has solved it for me.

@brbeaird
Copy link

brbeaird commented Jan 31, 2018

Do you mean you put the entire alertify script string into a script tag? That seemed to work for me but seems really odd.

@ndrkltsk
Copy link

ndrkltsk commented Feb 26, 2018

EDIT:
duplicate of 101

@brbeaird
Copy link

This ended up being related to script order. I had the script being fired before the binding element was rendered.

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

4 participants