TypeError: Cannot read property 'name' of undefined using log4js (^6.4.0) with angular in ssr mode
envgap__log4js-node__log4js-node-1225
01 / FAILURE SIGNATURE
As reported upstream
The error will be in terminal:
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
cfb0c48183ea2c13929d3e281b1846aa736d3a36- Manifest
package.json- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
log4js-node/log4js-node #1225 · read the original issue
Hello, I am facing one issue in chain of packages: "log4js" -> "streamroller" -> "fs-extra" -> "graceful-fs" and "universalify" This is the way how it could be reproduced: 1. Create a new angular project 2. Implement ssr (https://angular.io/guide/universal) 3. Install "log4js" and use it to log something in server.ts file for example:  5. Build and run this project in ssr mode. The error will be in terminal:  After some investigations I have found that in last versions of "log4js" the version of "streamroller" was changed from "2.x.x" to "3.x.x" which caused changing the version of "fs-extra" to the last one. The issue occurs in "universalify" package which is used by "fs-extra":  If we go step up in the callstack then we see this part of code in "fs-extra":  Previously it has a verification that prevented this issue:  But it was changed in this commit https://github.com/jprichardson/node-fs-extra/commit/f4a880d29c3a699c0695755fe8533d786c55f65f: In this case maybe "graceful-fs" should be updated in order to return proper value in this case, because it doesn't return proper value for fs.realpath.native:  With "log4js" version 6.3.0 there is no such issue because it uses the old version of "streamroller" which uses the old version of "fs-extra" which has versification mentioned above. I am not sure on which package I should report this issue but I see it because I am using "log4js" so maybe this is the right place to start. Could you please check it? Thank you very much for your help in advance. Best Regards, Andrei
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]