#Bootstraping root component with SSR

9 messages · Page 1 of 1 (latest)

crimson tundra
#

I have this project here https://github.com/minhperry/skyblock-simulator using Node 22.11 as well as newly upgraded Angular 19, with SSR also updated as well. Since the new standalone true default change I have also decided to make all the components standalone with ng g @angular/core:standalone, which deleted app.module.ts.

Now I have a root component AppComponent abd only AppServerModule. How would I bootstrap it correctly, in app.server.module.ts or change something in main.server.ts?

GitHub

Contribute to minhperry/skyblock-simulator development by creating an account on GitHub.

#

If I added

platformBrowser().bootstrapModule(AppServerModule);
``` then it will error `A platform with a different configuration has been created. Please destroy it first.`, and I assume it's conflict with bootstraped app in main.server.ts. Same thing with platformServer().
#

...

#

nvm

#

apparently i am way overcomplicating the problem

#

and way overthinking

#

i just need an empty ngDoBootstrap() in AppServerModule

nimble blaze
crimson tundra