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

sweetalert.all.js:1 Uncaught TypeError: Cannot read property 'querySelector' of null #45

Closed
vin33t opened this issue Aug 2, 2019 · 4 comments

Comments

@vin33t
Copy link

vin33t commented Aug 2, 2019

  • Package Version: 2.0
  • Laravel Version: 5.8

Description:

sweetalert.all.js:1 Uncaught TypeError: Cannot read property 'querySelector' of null
at q (sweetalert.all.js:1)
at H (sweetalert.all.js:1)
at I (sweetalert.all.js:1)
at rt (sweetalert.all.js:1)
at sweetalert.all.js:1
at ue._main (sweetalert.all.js:1)
at new ue (sweetalert.all.js:1)
at c (sweetalert.all.js:1)
at Function.fire (sweetalert.all.js:1)
at create:22

Steps To Reproduce:

called from controller
Alert::success('Success Title', 'Success Message');

@realrashid
Copy link
Owner

Hi @vin33t ,
Are you sure you install and configured properly?

@vin33t
Copy link
Author

vin33t commented Aug 2, 2019

Hi @vin33t ,
Are you sure you install and configured properly?

yes, I did, twice on different projects

@edlobo98
Copy link

Hi @vin33t, the thing is that you should include @include('sweetalert::alert') inside the body tags of your document, I was having the same problem but I found that solution

@realrashid
Copy link
Owner

Hey @vin33t
Do the right configuration follow the documents.

@edlobo98 thanks for your help.

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

3 participants