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
{{ message }}
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
Which parts of preboot are affected by this issue?
server side
client side
inline
build process
docs
tests
What is the current behavior?
After adding preboot@6.0.0-beta.3, in my Angular@5.2.1 application, getting this error on SSR,
'Uncaught TypeError: Cannot set property 'prebootData' of undefined'
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem by creating a github repo.
I have added PrebootModule in my root.module.ts like this:-
import { BrowserModule } from "@angular/platform-browser";
import { PrebootModule } from 'preboot';
import { ServerTransition } from "./server-transition.module";
import { RootComponent } from "./root.component";
...
@NgModule({
imports: [
...,
BrowserModule.withServerTransition({ appId: 'ng-web-app' }),
PrebootModule.withConfig({ appRoot: 'root'}), // 'root' is the selector of root component
...
],
declarations: [
RootComponent,
...
]
})
export class RootModule {}
and my root.server.module.ts :-
import {NgModule} from '@angular/core';
import { ServerModule } from '@angular/platform-server';
import {ModuleMapLoaderModule} from '@nguniversal/module-map-ngfactory-loader';
import { RouterModule } from '@angular/router';
import {RootModule} from '../client/root.module';
import {Root} from '../client/root.component';
@NgModule({
imports: [
RootModule,
ServerModule,
ModuleMapLoaderModule
],
bootstrap: [Root],
providers: []
})
export class RootServerModule {}
What is the expected behavior?
This error should not occur and the transition between SSR and CSR should be smooth.
Please tell us about your environment:
Language: [TypeScript ]
Platform: [ NodeJs | Angular-5.2.1 ]
Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)
The text was updated successfully, but these errors were encountered:
We do not support or have LTS for any other version other than the current beta and the version of Angular it supports (in this case 6.0.0-beta.6 and Angular v6). I apologize for the inconvenience this may cause, but this is a very small project. If you can reproduce the issue on the latest beta, this is definitely something we can look into.
Note: for support questions, please use the Universal Slack Channcel or https://gitter.im/angular/universal
After adding preboot@6.0.0-beta.3, in my Angular@5.2.1 application, getting this error on SSR,
'Uncaught TypeError: Cannot set property 'prebootData' of undefined'
I have added PrebootModule in my root.module.ts like this:-
and my root.server.module.ts :-
What is the expected behavior?
This error should not occur and the transition between SSR and CSR should be smooth.
Please tell us about your environment:
The text was updated successfully, but these errors were encountered: