-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConsoleLogger prints an array of an object as [object Object]
.
#10280
Comments
[object Object]
.
Looks like this comes from our |
Following what @jmcdo29 wrote above, would you like to create a PR for this change @yukukotani? |
@jmcdo29 @kamilmysliwiec Thanks for the explanation! Of course, I'll work on this. |
stringify arrays as json to avoid [object Object] Close nestjs#10280
Let's track this here #10291 |
Is there an existing issue for this?
Current behavior
ConsoleLogger prints an object correctly. But an array of an object is printed as
[object Object]
.Minimum reproduction code
https://stackblitz.com/edit/nestjs-typescript-starter-nglkvt?file=src%2Fapp.controller.ts
Steps to reproduce
No response
Expected behavior
An array of an object should be printed with
JSON.stringify
.Package
@nestjs/common
@nestjs/core
@nestjs/microservices
@nestjs/platform-express
@nestjs/platform-fastify
@nestjs/platform-socket.io
@nestjs/platform-ws
@nestjs/testing
@nestjs/websockets
Other package
No response
NestJS version
No response
Packages versions
[System Information]
OS Version : Linux 5.0
NodeJS Version : v16.14.2
NPM Version : 7.17.0
[Nest CLI]
Nest CLI Version : 9.0.0
[Nest Platform Information]
platform-express version : 9.0.0
schematics version : 9.0.0
testing version : 9.0.0
common version : 9.0.0
core version : 9.0.0
cli version : 9.0.0
Node.js version
No response
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: