I am trying to use process.stdout.write("some text"); to print text without terminating \n.
Under Visual Studio Code debugger I am getting an error:
ERROR TypeError: Cannot read properties of undefined (reading 'write')
The code included:
const s1 = of(1, 2, 3).pipe(
map(v1 =>
of(100, 101, 102, 103, 104).pipe(
map(v2 => [v1,v2])
)
),
combineLatestAll()
);
s1.subscribe(value => {
process.stdout.write("["+value+"]");
});
Has anybody encountered this issue?