For more information, visit here: https://www.npmjs.com/package/@angular/platform-server
Questions tagged [platform-server]
9 questions
13
votes
2 answers
What's the main purpose of platform-server module in Angular 2?
When looking AOT (ahead of time compilation) docs https://angular.io/docs/ts/latest/cookbook/aot-compiler.html#!#compile , there is a dependency on platform-server , what is the purpose of it ? seems only compiler-cli required to run the compiler…

asotog
- 225
- 2
- 8
5
votes
1 answer
Angular Routing Not Working After Upgrading to Angular 4
I updated like this, found here
On Linux/Mac: npm install
@angular/{common,compiler,compiler-cli,core,forms,http,platform-browser,platform-browser-dynamic,platform-server,router,animations}@latest
typescript@latest --save
When I remove…

wuno
- 9,547
- 19
- 96
- 180
3
votes
0 answers
How to call angular/cli commands from node?
Background: I will be building 40+ locales of an applications and pre-rending all the pages to static html.
To do this I need access to every AppServerModuleNgFactory.
Questions:
1- Can I call ng build from from @angular/cli package in a file called…

Armeen Moon
- 18,061
- 35
- 120
- 233
3
votes
1 answer
Angular cli server-side rendering without ng eject
According to this article, the only way to implement good server-side rendering with Angular 4's platform-server is to set up a custom webpack config after running ng eject on an angular cli project.
Maybe this question is naive of me, but is there…

Kevin LeStarge
- 8,142
- 4
- 21
- 34
2
votes
1 answer
Angular4 server side rendering with resolvind data
I am working on Angular4 project. I integrated server side rendering following this tutorial. Everything works, except one thing.
I need to change meta tags of page after data will be resolved from API server. I mean resolving like…

Albert
- 201
- 1
- 7
1
vote
1 answer
Angular Universal (Platform Server) : SyntaxError: Unexpected token import : for external modules
Am following this guide to enable universal rendering for my angular cli app using angular platform server. I have also updated my angular-cli and angular versions to the latest available.
All works well and I can see the pre rendering happen,…

Nirav
- 45
- 8
0
votes
1 answer
Angular Platform-server (Universal): route with get params
I'm trying to describe a route with get params in my platform-server/universal app but so far without any success.
Anyone have an idea how to define achieve that?
Based on what I know from express routing I tried the following but I end up facing…

David Dal Busco
- 7,975
- 15
- 55
- 96
0
votes
1 answer
Does Ahead-of-Time Compilation need angular-cli as a production dependency?
Going from the official instructions found here https://angular.io/guide/aot-compiler, it recommends installing the following npm dependencies with the command:
npm install @angular/compiler-cli @angular/platform-server --save
This adds both…

nciao
- 581
- 4
- 22
-1
votes
3 answers
Webpack sass loading Error with style.scss in Angular 4
I'm trying to do add postcss-loader to Angular 4 with platform-server rendering, I keep getting the error as below, basically what I'm trying to do is adding style.scss as global scss to my webpack process, similar the way it's working in cli...
…

Alireza
- 100,211
- 27
- 269
- 172