I just updated angular-cli (v1.1) and created a new project using ng new MyProj
.
Then I added and installed two dependencies to the project.json fi
I solved the problem removing types
from tsconfig.app.json
.
This is the new configuration:
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/app",
"module": "es2015",
"baseUrl": ""
},
"exclude": [
"test.ts",
"**/*.spec.ts"
]
}
Try doing import * as toastr from 'toastr'
or import toastr from 'toastr'
- the latter is if it has a default export.