File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 11import { HttpClientModule } from '@angular/common/http' ;
2- import { NgModule } from '@angular/core' ;
2+ import { ErrorHandler , NgModule } from '@angular/core' ;
33import { ReactiveFormsModule } from '@angular/forms' ;
44import { BrowserModule } from '@angular/platform-browser' ;
55import { BrowserAnimationsModule } from '@angular/platform-browser/animations' ;
@@ -13,6 +13,7 @@ import { NzIconModule } from 'ng-zorro-antd/icon';
1313import { NzSpinModule } from 'ng-zorro-antd/spin' ;
1414import { QuillModule } from 'ngx-quill' ;
1515import { SnowModule } from './core/snow/snow.module' ;
16+ import * as Sentry from "@sentry/angular" ;
1617
1718@NgModule ( {
1819 declarations : [ AppComponent ] ,
@@ -27,12 +28,17 @@ import { SnowModule } from './core/snow/snow.module';
2728 environment . production ? [ ] : AkitaNgDevtools ,
2829 AkitaNgRouterStoreModule ,
2930 QuillModule . forRoot ( ) ,
30- SnowModule
31+ SnowModule
3132 ] ,
3233 providers : [
3334 {
3435 provide : NG_ENTITY_SERVICE_CONFIG ,
3536 useValue : { baseUrl : 'https://jsonplaceholder.typicode.com' }
37+ } ,
38+
39+ {
40+ provide : ErrorHandler ,
41+ useValue : Sentry . createErrorHandler ( )
3642 }
3743 ] ,
3844 bootstrap : [ AppComponent ]
You can’t perform that action at this time.
0 commit comments