-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Labels
P2The issue is important to a large percentage of users, with a workaroundThe issue is important to a large percentage of users, with a workaroundarea: coreIssues related to the framework runtimeIssues related to the framework runtimecore: event dispatchcore: hydrationstate: confirmedstate: has PR
Milestone
Description
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description
withEventReplay() feature does not work on fresh angular project.
This is my app.config.ts:
import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core';
import { provideRouter } from '@angular/router';
import { routes } from './app.routes';
import {
provideClientHydration,
withEventReplay,
withI18nSupport,
withNoHttpTransferCache
} from '@angular/platform-browser';
export const appConfig: ApplicationConfig = {
providers: [
provideZoneChangeDetection({ eventCoalescing: true }),
provideRouter(routes),
provideClientHydration(withNoHttpTransferCache(), withI18nSupport(), withEventReplay()),
]
};Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
8:47:57 PM [vite] Internal server error: Cannot read properties of null (reading 'type')
at setJSActionAttribute (/jsaction-bug/node_modules/@angular/core/fesm2022/core.mjs:36686:15)
at serializeLView (/jsaction-bug/node_modules/@angular/core/fesm2022/core.mjs:36972:13)
at annotateHostElementForHydration (/jsaction-bug/node_modules/@angular/core/fesm2022/core.mjs:37174:21)
at annotateComponentLViewForHydration (/jsaction-bug/node_modules/@angular/core/fesm2022/core.mjs:36776:16)
at annotateForHydration (/jsaction-bug/node_modules/@angular/core/fesm2022/core.mjs:36841:17)
at prepareForHydration (/jsaction-bug/node_modules/@angular/platform-server/fesm2022/platform-server.mjs:16982:34)
at eval (/jsaction-bug/node_modules/@angular/platform-server/fesm2022/platform-server.mjs:17042:3)
at Generator.next (<anonymous>)
at fulfilled (/jsaction-bug/.angular/vite-root/jsaction-bug/chunk-QDHZVCWX.mjs:50:24)
at _ZoneDelegate.invoke (/jsaction-bug/node_modules/zone.js/fesm2015/zone-node.js:365:28)
Please provide the environment you discovered this bug in (run ng version)
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 18.0.1
Node: 21.7.3 (Unsupported)
Package Manager: npm 10.5.0
OS: darwin arm64
Angular: 18.0.0
... animations, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic
... platform-server, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1800.1
@angular-devkit/build-angular 18.0.1
@angular-devkit/core 18.0.1
@angular-devkit/schematics 18.0.1
@angular/cli 18.0.1
@angular/ssr 18.0.1
@schematics/angular 18.0.1
rxjs 7.8.1
typescript 5.4.5
zone.js 0.14.6
Anything else?
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2The issue is important to a large percentage of users, with a workaroundThe issue is important to a large percentage of users, with a workaroundarea: coreIssues related to the framework runtimeIssues related to the framework runtimecore: event dispatchcore: hydrationstate: confirmedstate: has PR