Open hal1984 opened 2 days ago
As further investigation I am pretty sure that the problem was introduced here:
https://github.com/angular/angular/pull/58386
when the check Is isPlatformBrowser
was replaced for the global variable ngServerMode
.
Thanks for pointing this out. This seems to be an issue with provideClientHydration -- if you skip this option in your app.config.ts it works. We will further look into this issue.
Reproduction step:
create new angular project: ng new shell --ssr add native federation: ng add @angular-architects/native-federation --project shell --type dynamic-host --port 4200 run the project: npm run start
Expected result:
The application launch
Current result:
ng serve fails on open webpage with "The document object is not available"
Stackblitz with error:
https://stackblitz.com/~/github.com/hal1984/shell