tonivj5 / angular-issue-34993

https://github.com/angular/angular/issues/34993

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reproduction of angular/angular#34993

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { StoreModule } from '@ngrx/store';
import { StoreRouterConnectingModule } from '@ngrx/router-store';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { TestComponent } from './test.component';

@NgModule({
  declarations: [AppComponent, TestComponent],
  imports: [
    BrowserModule,
    AppRoutingModule,
    StoreModule.forRoot(
      {},
      {
        runtimeChecks: {
          strictActionImmutability: true, // disable it to avoid the error
        },
      },
    ),
    StoreRouterConnectingModule.forRoot(),
  ],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {}

About

https://github.com/angular/angular/issues/34993


Languages

Language:TypeScript 78.4%Language:JavaScript 17.7%Language:HTML 3.1%Language:CSS 0.8%