Visual Studio Code Version 1.65.1
Node: 16.13.0
Angular: 13.0.3
Platform: Windows 10
When I am trying to use in my angular project:
process.stdout.write("some text");
... I am getting in the debugger of VSC IDE the error ERROR TypeError: Cannot read properties of undefined (reading 'write'). I have done some research:
I have added into my tsconfig.app.json "types": ["node"] as suggested in other thread.
I have followed the video Uncaught ReferenceError: process is not defined , Angular 12,13 Error Fixed to add to the polyfills.ts (window as any).process = {env: {DEBUG: undefined},}; and it compiles OK, but I am getting this error during debug session.