$.notify is not a function

See original GitHub issue

Hello, I’m facing a problem developing with Notify (Now UI from Creative TIM). I saw a similar issue #152, but the solutions are not so optimistic.

My environment: Laravel 5.6 vue.js 2.5.7 Bootstrap 4.0.0 Jquery 3.3.1


in vue.js .then(function (resp) { $.notify("Hello World"); app.$router.push({path: '/admin/'}); })

The console logs as

Uncaught TypeError: $.notify is not a function


Without Vue.js, the problem is still there.

I’m running everything OK if the code is <script> jQuery.notify("Hello World"); </script>

but when it comes to

<script> $(document).ready(function() { jQuery.notify("Hello World"); }); </script>

The console also logs as

Uncaught TypeError: $.notify is not a function


How can I fix this? or is there any one having the same issue here? Thanks for reading ^ _ ^

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
simion-chiscommented, Jul 17, 2021

I solved with window.notify = require("bootstrap4-notify"); in bootstrap.js and then use $.notify({options},{settings}) Laravel 8 Bootstrap 4.6

0reactions
AhmadSaeedAwan78commented, Jul 5, 2021

Mostly it’s due to the jquery version, use the compatible version of Jquery, Problem will be solved

Read more comments on GitHub >

github_iconTop Results From Across the Web

notify is not a function with Bootstrap in MVC after ajax call
My problem was what in function load() , I loaded another jquery.js.
Read more >
notify in not a function · Issue #152 · mouse0270/bootstrap- ...
Hi . i was trying to use bootstrap-notify in my project , but your documentation was not useful fore me .
Read more >
How to show notifications in JavaScript
You can display a notification on your website using the Notification API. You only need to follow four simple steps to show system...
Read more >
Time limit for notify - JavaScript
No, im not referring to API notifications. I meant on my site, i send a little notify, when i press a button, it...
Read more >
$.notify is not a function angular Code Example
Queries related to “$.notify is not a function angular” · toastify js · notifyjs · notify javascript · jquery notification · $.notify jquery...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found