You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which @ngrx/* package(s) are the source of the bug?
store-devtools
Minimal reproduction of the bug/regression with instructions
As of Angular 15.0.0 the environments folder and the related fileReplacements will not be configured in new projects anymore. However, the schematics for store-devtools generate code that relies on the production flag.
The ng-add schematics for store-devtools have to be aligned accordingly.
What would the desired way look like?
omit logOnly completely and resolve this internally
The Angular PWA features use isDevMode() to enable the service worker config:
ServiceWorkerModule.register('ngsw-worker.js', {
enabled: !isDevMode(),
// Register the ServiceWorker as soon as the application is stable
// or after 30 seconds (whichever comes first).
registrationStrategy: 'registerWhenStable:30000'
})
So for a quick fix without rethinking everything I'd suggest using isDevMode!
Closes#3618
As of Angular 15.0.0 there will be no auto-generated environment files
anymore for new apps. Instead, we use the builtin `isDevMode()`
function from Angular.
- store-devtools: ng-add (logOnly option)
- store: ng-add
- schematics: store, reducer
- update documentation and examples
Which @ngrx/* package(s) are the source of the bug?
store-devtools
Minimal reproduction of the bug/regression with instructions
As of Angular 15.0.0 the
environments
folder and the relatedfileReplacements
will not be configured in new projects anymore. However, the schematics forstore-devtools
generate code that relies on theproduction
flag.The
ng-add
schematics forstore-devtools
have to be aligned accordingly.What would the desired way look like?
logOnly
completely and resolve this internallyisDevMode
? also see Use ngDevMode instead of isDevMode() to facilitate tree-shaking #3579)Minimal reproduction of the bug/regression with instructions
create an Angular project with v15
In
src/app/app.module.ts
, an import will be added for../environments/environment
which does not exist.Versions of NgRx, Angular, Node, affected browser(s) and operating system(s)
Other information
No response
I would be willing to submit a PR to fix this issue
The text was updated successfully, but these errors were encountered: