$.notify is not a function
See original GitHub issueHello, 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:
- Created 5 years ago
- Comments:7 (1 by maintainers)
Top Related StackOverflow Question
I solved with
window.notify = require("bootstrap4-notify");inbootstrap.jsand then use$.notify({options},{settings})Laravel 8 Bootstrap 4.6Mostly it’s due to the jquery version, use the compatible version of Jquery, Problem will be solved