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
Invalid location type passed to LoggingEvent constructor #1388
Comments
Self note: Maybe the following regex will be better |
@matheustoseto, it might also be because of the additional
If it's urgent, is it possible to remove the brackets? It should work before a fix is released. |
Hello @lamweili, it's not urgent, the project is not in production. About the square brackets, it is inserted by nextjs itself, I have no control over it =/ I saw that a correction will be released in the new version, thank you very much :) |
@lamweili Hi, when the fix will be released? I get the same error in our project and can't get the logs in production. It's urgent. |
*I used the google translator
Hello, when using log4js version 6.9.1 in a nextjs 13 project, I am getting the following error:
"Invalid location type passed to LoggingEvent constructor"
I performed the debugging of the lib code and ended up finding the reason for the problem. Apparently the
"stackReg"
of the file"./lib/logger.js"
does not interpret the following "stack" of nextjs, causing a null return.I verified that version 6.7.1 meets my scenario and I ended up downgrading the version, but I decided to open this issue to document the problem.
Test Scenario
Evidence
Logs by
https://github.com/log4js-node/log4js-node/blob/master/lib/logger.js#LL26C16-L26C16
The text was updated successfully, but these errors were encountered: