Cannot read properties of undefined (reading '') #22953
Replies: 4 comments 5 replies
-
Is your repo onboarded? Please share the full debug log too |
Beta Was this translation helpful? Give feedback.
-
Actually, I realized I don't need the changes I made to |
Beta Was this translation helpful? Give feedback.
-
I was facing the same error and the following worked for me
|
Beta Was this translation helpful? Give feedback.
-
In case this helps anyone else I also was facing this error, disabling onboarding let me run renovate but nothing was happening. Once I enabled debug logging I could see it was checking Git for the file, not the local file system. I hadn't checked in my renovate config into Git yet so it wasn't finding it. Once I did that it ran successfully. |
Beta Was this translation helpful? Give feedback.
-
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us what version of Renovate you run.
35.140.3
If you're self-hosting Renovate, select which platform you are using.
None
Was this something which used to work for you, and then stopped?
I am trying to get this working for the first time
Describe the problem
I'm messing with
platform=local
, trying to get renovate to run on a local git repo. I'm getting a messageRepository has unknown error
, with an error message ofCannot read properties of undefined (reading '')
and the stackI have a fix, but I'm uncertain about the way I've structured it—I just check
GlobalConfig.get('platform')
infetchBranchCommits()
. Maybe a better way is to make a platform method to return the command to get the ref/hash mapping, but I didn't see how I could write all the non-local platform versions once, rather than copy it into each. Could I test for the existence of the method and fall back to the current code if it doesn't exist?I'm also struggling to figure out how to test this.
I can post a PR if that would help, but wanted to start the discussion first as suggested by the contribution guidelines.
Relevant debug logs
https://gist.github.com/dhduvall/94b66eae4c535992a3b6929b1a25ec2f
Have you created a minimal reproduction repository?
I have explained in the description why a minimal reproduction is impossible
Beta Was this translation helpful? Give feedback.
All reactions