Skip to content
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

TypeError: Cannot read properties of undefined (reading 'replace') #6

Open
erickzhao opened this issue Nov 17, 2022 · 3 comments
Open

Comments

@erickzhao
Copy link
Member

2022-11-17T01:35:39.999010+00:00 app[web.1]: TypeError: Cannot read properties of undefined (reading 'replace')
2022-11-17T01:35:39.999024+00:00 app[web.1]: at /app/src/routes/release.js:200:33
2022-11-17T01:35:39.999025+00:00 app[web.1]: at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
@vine16
Copy link

vine16 commented Mar 23, 2024

Hi team,
I'd like to work on this issue. Could you please assign it to me? I'll start investigating the error and work towards resolving it.
Thanks!
Vinay Kumar

@erickzhao
Copy link
Member Author

@vine16 PRs are welcome, you don't need to ask! :)

@gopikant21
Copy link

Hi,
I have gone through the error. In the code, releaseNotes is being split by a regular expression, and the second part (index [1]) is being assigned back to releaseNotes. If the split operation does not result in at least two elements (meaning the regular expression did not match anything), releaseNotes will be undefined, and trying to call replace on it will throw the error.

Bug fixing: Check if releaseNotes is undefined after the split operation.

I have sent u a pull request. Please review it.

One question I want to ask is that what will be the releaseNotes and notes if it won't be split by regular expression?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants