注销时,我在main.ts文件中有此错误。对于注销,我使用AdalService。
这是我的错误
main.ts:14 TypeError: Cannot read property 'ngOriginalError' of undefined
at getOriginalError (vendor.js:76437)
at ErrorHandler.push../node_modules/@angular/core/fesm5/core.js.ErrorHandler._findOriginalError (vendor.js:76513)
at ErrorHandler.push../node_modules/@angular/core/fesm5/core.js.ErrorHandler.handleError (vendor.js:76490)
at vendor.js:78593
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (polyfills.js:2736)
at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (polyfills.js:2495)
at NgZone.push../node_modules/@angular/core/fesm5/core.js.NgZone.runOutsideAngular (vendor.js:77981)
at vendor.js:78593
at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (polyfills.js:2736)
at Object.onInvoke (vendor.js:78022)
这是我的main.ts文件
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';
import { environment } from './environments/environment';
import 'hammerjs';
if (environment.production) {
enableProdMode();
}
platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.error('Bootstrap error:', err));