Skip to content

Crashes with parseWithProgramProvider related warning #123

@bebraw

Description

@bebraw

I set up a demonstration about this: https://github.com/bebraw/styleguidist-ts-sc/tree/parser-bug .

If you run it, you should see

Warning: Cannot parse src/components/ButtonSCTS.tsx: TypeError: Cannot read property 'parseWithProgramProvider' of undefined

kind of warnings. I looked at the and it's crashing at the parser around line this.parseWithProgramProvider(filePathOrPaths) since this is undefined. I tried replacing the call with a regular function and it parsed fine. To fix, likely we have to do something about the way this is bound.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions