-
Notifications
You must be signed in to change notification settings - Fork 28
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
Trim is not a function #42
Comments
Same issue here when trying to use TSDX with storybook. |
Is there any workaround? |
The fix is to update https://www.npmjs.com/package/react-docgen-typescript to v2.0.0 (published two hours ago). Likely you can set it to the version through npm/yarn. I'll do a quick PR to fix it here as well. |
@bebraw - great, thank you! |
@leepowelldev It looks like v2.0.0 breaks parsing behavior a tiny bit ( |
Yeah I agree that updating the library will probably fix the error. Another related issue : #43 |
@bebraw Thanks for handling this! |
Eyes on this! thanks! |
Could you merge this PR? :) |
@ptrhck There's a regression in react-docgen-typescript that has to be solved before the update can be done. Here's more info: styleguidist/react-docgen-typescript#366 . |
@bebraw It's not exactly a regression; it's an issue with using #43 would fix the tag parsing issue by updating this package's |
Having an issue with Typescript 4.3.2 and line 476 on
parser.js
I output the console and can see in certain scenarios that instead of getting:
I am getting this kind of structure:
I'll try to dig deeper tonight to see if I can find out what is happening and try to create a simplified demo.
The text was updated successfully, but these errors were encountered: