Github repo : https://github.com/adrienpsl/test-ngrx-data-effects
With ng build --prod :
{
// ngrx
"@ngrx/data": "^8.0.0-beta.2",
"@ngrx/effects": "github:ngrx/effects-builds",
"@ngrx/entity": "github:ngrx/entity-builds",
"@ngrx/router-store": "github:ngrx/router-store-builds",
"@ngrx/store": "github:ngrx/store-builds",
// angular cli
"@angular/cli": "~8.0.0-rc.3",
"@angular/compiler-cli": "~8.0.0-rc.4",
// angular
"@angular/compiler": "~8.0.0-rc.4",
"@angular/core": "~8.0.0-rc.4",
}
is this related to : https://github.com/l3ender/ngrx-aot/pull/1 ?
[ ] Yes (Assistance is provided if you need help submitting a pull request)
[X] No
This seems like the same problem as in https://github.com/johnpapa/angular-ngrx-data/issues/156.
I tried to reproduce it in the example app but wasn't possible to do so.
thank you for the quick answer :) .
I compile with macos mojave : 10.14.5 may be that osx is the problem ?
What is your operating system ?
I will try to compile on a vm linux
It isn't OS specific, if I run your repro it does in fact not run the effect.
@adrienpsl does this also occur with @ngrx/*@8.0.0-rc.0?
@adrienpsl, does this occur if you disable the angular cli build optimizer?
ng build --prod --no-build-optimizer
As this might be related to https://github.com/angular/angular-cli/issues/14613
I think they are related and consider this issue resolved. We will close it once the fix in the CLI is merged
This issue is resolved in https://github.com/angular/angular-cli/pull/14585
Yes, it works !
I use the following : angular 8 / cli 8 / ngrx 8.0.1
:) .
Hi, I don't think this issue really solved.
Either that, or it is a regression.
With the current version of ngrx 8.2.0, still get the same problem when doign a --prod build.
it works if using the --optimization=false flag though
(also using 8.2.0 versions of angular/cli)
Most helpful comment
This issue is resolved in https://github.com/angular/angular-cli/pull/14585