angular/universal

console.log on the server displays extra new lines

tomscript opened this issue · 1 comments

  • builders
  • [x ] common // I guess !
  • express-engine

Is this a regression?

No, always this way.

Description

Using console.log on the server shows extra new lines. Even though I call console.log multiple times right next to each other there's often a new line between them.

🔬 Minimal Reproduction

  1. clone repo https://github.com/tomscript/sturdy-octo-spork
  2. npm i -f
  3. npm run dev:ssr
  4. http://localhost:4200

image

    console.log("foo");
    console.log("bar");
    console.log("baz");

🔥 Exception or Error

none

🌍 Your Environment


Angular CLI: 16.0.0
Node: 18.12.0
Package Manager: npm 8.19.3
OS: darwin arm64

Angular: 16.0.0
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, material, platform-browser, platform-browser-dynamic
... platform-server, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1600.0-next.7
@angular-devkit/build-angular   16.0.0-next.7
@angular-devkit/core            16.0.0-next.7
@angular-devkit/schematics      16.0.0
@angular/fire                   7.5.0
@nguniversal/builders           16.0.0
@nguniversal/express-engine     16.0.0
@schematics/angular             16.0.0
rxjs                            7.8.0
typescript                      5.0.4

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.