Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with ngrx: Value could not be determined statically #133

Open
bppn opened this issue Aug 17, 2023 · 0 comments
Open

Problems with ngrx: Value could not be determined statically #133

bppn opened this issue Aug 17, 2023 · 0 comments

Comments

@bppn
Copy link

bppn commented Aug 17, 2023

Using Angular 16 when generating a domain + app and enabling ngrx, the following code is generate (domain account):

import { NgModule, isDevMode } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { AccountWelcomeComponent } from './nx-welcome.component';
import { StoreModule } from '@ngrx/store';
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
import { EffectsModule } from '@ngrx/effects';
import { AccountFeatureAvatarModule } from '@portal/account/feature-avatar';
import { HttpClientModule } from '@angular/common/http';

@NgModule({
  declarations: [AppComponent, AccountWelcomeComponent],
  imports: [
    BrowserModule,
    StoreModule.forRoot({}),
    isDevMode() ? StoreDevtoolsModule.instrument() : [],
    EffectsModule.forRoot(),
    AccountFeatureAvatarModule,
    HttpClientModule,
  ],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {}

However the following error is reported and the line sDevMode() ? StoreDevtoolsModule.instrument() : [],

Value at position 2 in the NgModule.imports of AppModule is not a reference
Value could not be determined statically.(-991010)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant