import * as Toastr from 'toastr'; import './/../node_modules/toastr/build/toastr.css'; //You need style and css loader installed and set Toastr.options = { closeButton: false, newestOnTop: false, progressBar: false, positionClass: 'toast-bottom-right', preventDuplicates: false, onclick: null, showDuration: 300, hideDuration: 1000, timeOut: 5000, extendedTimeOut: 1000, showEasing: 'swing', hideEasing: 'linear', showMethod: 'fadeIn', hideMethod: 'fadeOut', }; Toastr.info('This works!');