-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Bug]: react-docgen fails on match(regex) inside promise. #26652
Comments
Hi @MarkLyck Have you used
|
@valentinpalkovic Thank you! I can confirm reverting to the old I was hoping to take advantage of the new |
I think you have already found the corresponding issue in the react-docgen repo: reactjs/react-docgen#902 Let's hope this gets fixed soon! Since this isn't a particular Storybook issue, I would suggest closing this issue. |
Describe the bug
After upgrading to storybook 8.0.4, building the storybook fails with the following error:
The bug occurs when using regex with the following lines of code:
Removing the line
value.match(phoneNumberRegex)
from my code makes the error go away. But of course I do want to be able to validate a phone number regex in my form.This worked fine in [email protected]
To Reproduce
https://stackblitz.com/edit/github-xschwr?file=src%2Fstories%2FPhoneNumberInput.tsx
Try to run the
PhoneNumberInput
story, or runbuild-storybook
to see error.I could not reproduce it running the
match
function by itself outside of antd validator. But given that this works fine in the actual webapp, and it was working fine in storybook 7, it seems to be a storybook bug and not an issue withantd
.System
Additional context
No response
The text was updated successfully, but these errors were encountered: