kamranahmedse / jquery-toast-plugin

Highly customizable jquery plugin to show toast messages
http://kamranahmed.info/toast
1.51k stars 508 forks source link

TypeError: __WEBPACK_IMPORTED_MODULE_5_jquery___default.a.toast is not a function #36

Closed Minaz123 closed 6 years ago

Minaz123 commented 6 years ago

hi, I am trying to implement this plugin in my reactjs project (in the handleSubmit method). However it throws this type error. could you pls tell me what i might be doing wrong ?

I am importing it as import $ from 'jquery'; Do i explicitly have to import jquery-toast-plugin ??

kamranahmedse commented 6 years ago

yes you have to import it. Add the below line after you import jquery.

import 'jquery-toast-plugin';