Use toastr with angular2
问题 I'm using this node package link Following the instructions the typescript compiler gets out of mind. I think the problem is the same described here but I cant find a workaround. Any help? Thanks a lot 回答1: This means that you can use directly the toastr object directly without having to import it like this: import * as toastr from '...'; . That said to avoid compilation error, you need to include the corresponding typings: /// <reference path="./toaster.d.ts" /> Here is the way to use Toastr