Angular Unit Test - Cannot find module “tslib”
When running angular UT, you may encounter the error message looks like:
1 | Uncaught Error: Cannot find module 'tslib' |
This should be coming from Angular Core
removed:
1 | import { Type } from '@angular/compiler/src/core'; |
Using:
1 | import { Injectable, Type } from '@angular/core'; |