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

trim is not a function #367

Closed
monsieurBoutte opened this issue Jun 14, 2021 · 1 comment
Closed

trim is not a function #367

monsieurBoutte opened this issue Jun 14, 2021 · 1 comment

Comments

@monsieurBoutte
Copy link

This issue is breaking other libraries that have this pulled in as a dependency. For example: jaredpalmer/tsdx#1043

70% sealing React Docgen Typescript Plugin/home/luigi/Desktop/tsdx-test/node_modules/react-docgen-typescript/lib/parser.js:475
            var trimmedText = (tag.text || '').trim();
                                               ^

TypeError: (tag.text || "").trim is not a function

Current workaround to get this running for me, was to dive into react-docgen-typescript/lib/parser.js:475 and remove the .trim() call on line 475

@robiXxu
Copy link

robiXxu commented Jun 14, 2021

Was fixed and merged 5 days ago:
#356

You should close this Issue

@pvasek pvasek closed this as completed Jun 14, 2021
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