Fail to install - Cannot read property
Cookiewookie87 opened this issue · comments
Jernej commented
I have followed this quick instal guide (i have added to folder toastr.css and toastr.js:
- Link to toastr.css
- Link to toastr.js <script src="toastr.js"></script>
- use toastr to display a toast for info, success, warning or error
// Display an info toast with no title
toastr.info('Are you the 6 fingered man?')
and then I got an error:
Cannot read property 'extend' of undefined
at getOptions (toastr.js:452)
at Object.info (toastr.js:71)
at HTMLButtonElement.testClick (script.js:25)
Now I do not know how to solve this or use it (beginner here)
Jernej commented
Got it, jQuery must be added
neilyoung commented
jquery is not mentioned as dependency and I'm asking myself, why is it required?