After the git merge with my friend changes, our project in angular2 stopped to work:
It compiles properly but If I try to navigate inside my component, It doesn't get rendered and I get this message in the console:
Error: Uncaught (in promise): TypeError: name.match(...) is null
The component before the merge was properly rendered.
After lot of time spent in investigation, we notice that the problem comes from the constructor of the component and the services it uses.
This is the constructor that cause problems:
constructor(
private mdService: MasterDataService,
private _WebDBService: WebDBService,
private fb: FormBuilder,
private loaderService: LoaderService,
private _offlineOrderService: OfflineOrderService
) {
....
}
If we remove the declaration of WebDbService and OfflineOrderService the component loads properly...
This is the working constructor:
constructor(
private mdService: MasterDataService,
//private _WebDBService: WebDBService,
private fb: FormBuilder,
private loaderService: LoaderService,
//private _offlineOrderService: OfflineOrderService
) {
....
}
The two service are properly declared in app.module , we have checked... It should works...
We don't know what to check now.
Thanks to support