Toastr in Symfony with Encore
guillaumecardon opened this issue · comments
Hello,
After adding Toastr with yarn, i added the library in my main "app.js"
require('toastr');
In my third script file, i simply add :
toastr.info('Are you the 6 fingered man?');
I have an error in console : Uncaught ReferenceError: toastr is not defined
Does anyone have some issue to implement Toastr in Symfony ?
Fixed with a dirty :
import * as toastr from "toastr";
import "../../../node_modules/toastr/build/toastr.min.css";
Unfortunetaly, there are some CSS issue with Bootstrap 4.4
I think this is the end of Toastr... It was a great library !