Improving the log message of "Cannot read properties of undefined (reading 'split')" #28160
mklueh
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I'm again running into this issue after almost two years #13749
I'm yet again stuck with no clear hints, and obviously its something different this time, and obviously nothing has changed regarding the clearness of the log message.
Motivation
If you search for this error in the issues, you'll find dozens of similar issues, and several with no answers.
I kindly like to ask if it would be possible, to implement a better log message so people can actually help themselves, which would at least include:
Thanks in advance.
Edit
It turns out one of the root cause was eslint.config.js in one of my components
For some reason, the actual error message was suppressed and only appeared after excluding one project after another with
.nxignore
In another project, it was caused by
while in other projects this property does not cause any issues
However, after removing it AND adding it again it suddenly worked - so likely something is flaky here.
Oh and btw I ran
yarn nx reset
dozens of times.For another module I still haven't figured it out yet, as this module has no related changes.
So overall, its pretty hard to work with that kind of error message and I'd highly appreciate any improvements
Edit 2:
seems to be the main culprit, but only for two modules. The other modules flawlessly work with that property in place
Beta Was this translation helpful? Give feedback.
All reactions