JeroenRombouts / ngrx-store-with-angular-cli

step by step recreation of the app from https://gist.github.com/btroncone/a6e4347326749f938510#walkthrough but with angular cli instead of Plunker. Each branch is a step.
0 stars 1 forks source link

Error on first run #12

Open pramodx opened 7 years ago

pramodx commented 7 years ago

Hi

I was just having a look at your ngrx store implementation. I cloned your repo, ran npm install followed by ng serve. I get this error:

ERROR in Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 26:23 in the original .ts file), resolving symbol people in /Users/pramodx/Projects/ngrx-store-with-angular-cli/src/app/reducers/people.ts, resolving symbol AppModule in /Users/pramodx/Projects/ngrx-store-with-angular-cli/src/app/app.module.ts, resolving symbol AppModule in /Users/pramodx/Projects/ngrx-store-with-angular-cli/src/app/app.module.ts, resolving symbol AppModule in /Users/pramodx/Projects/ngrx-store-with-angular-cli/src/app/app.module.ts

Any advise?

JeroenRombouts commented 7 years ago

I assume that's because it's not made with any thought to AOT. Can you try with ng serve -aot false