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

[Bug] build storybook crash #3253

Closed
himself65 opened this issue May 28, 2021 · 0 comments · Fixed by #3254
Closed

[Bug] build storybook crash #3253

himself65 opened this issue May 28, 2021 · 0 comments · Fixed by #3254
Assignees

Comments

@himself65
Copy link
Member

70% sealing React Docgen Typescript PluginC:\Users\himse\Code\github\Maskbook\node_modules\.pnpm\react-docgen-typescript@1.22.0\node_modules\react-docge
n-typescript\lib\parser.js:475
            var trimmedText = (tag.text || '').trim();
                                               ^

TypeError: (tag.text || "").trim is not a function
    at C:\Users\himse\Code\github\Maskbook\node_modules\.pnpm\react-docgen-typescript@1.22.0\node_modules\react-docgen-typescript\lib\parser.js:475:48
    at Array.forEach (<anonymous>)
    at Parser.getFullJsDocComment (C:\Users\himse\Code\github\Maskbook\node_modules\.pnpm\react-docgen-typescript@1.22.0\node_modules\react-docgen-types
cript\lib\parser.js:474:14)
    at Parser.findDocComment (C:\Users\himse\Code\github\Maskbook\node_modules\.pnpm\react-docgen-typescript@1.22.0\node_modules\react-docgen-typescript
\lib\parser.js:443:28)
    at C:\Users\himse\Code\github\Maskbook\node_modules\.pnpm\react-docgen-typescript@1.22.0\node_modules\react-docgen-typescript\lib\parser.js:406:38
    at Array.forEach (<anonymous>)
    at Parser.getPropsInfo (C:\Users\himse\Code\github\Maskbook\node_modules\.pnpm\react-docgen-typescript@1.22.0\node_modules\react-docgen-typescript\l
ib\parser.js:402:27)
    at Parser.getComponentInfo (C:\Users\himse\Code\github\Maskbook\node_modules\.pnpm\react-docgen-typescript@1.22.0\node_modules\react-docgen-typescri
pt\lib\parser.js:187:30)
    at C:\Users\himse\Code\github\Maskbook\node_modules\.pnpm\react-docgen-typescript@1.22.0\node_modules\react-docgen-typescript\lib\parser.js:895:30
    at Array.forEach (<anonymous>)
    at C:\Users\himse\Code\github\Maskbook\node_modules\.pnpm\react-docgen-typescript@1.22.0\node_modules\react-docgen-typescript\lib\parser.js:894:20
    at Array.reduce (<anonymous>)
    at parseWithProgramProvider (C:\Users\himse\Code\github\Maskbook\node_modules\.pnpm\react-docgen-typescript@1.22.0\node_modules\react-docgen-typescr
ipt\lib\parser.js:886:10)
    at Object.parseWithProgramProvider (C:\Users\himse\Code\github\Maskbook\node_modules\.pnpm\react-docgen-typescript@1.22.0\node_modules\react-docgen-
typescript\lib\parser.js:75:20)
    at processModule (C:\Users\himse\Code\github\Maskbook\node_modules\.pnpm\react-docgen-typescript-plugin@0.6.3\node_modules\react-docgen-typescript-p
lugin\dist\plugin.js:18:34)
    at C:\Users\himse\Code\github\Maskbook\node_modules\.pnpm\react-docgen-typescript-plugin@0.6.3\node_modules\react-docgen-typescript-plugin\dist\plug
in.js:97:49
 ERROR  Command failed with exit code 1.

Process finished with exit code 1

related issue: styleguidist/react-docgen-typescript#356

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

Successfully merging a pull request may close this issue.

3 participants