Skip to content

recommended Template.bind story notation does not work with storysource addon #17275

Closed as not planned
@7yp0

Description

@7yp0

Describe the bug
In a typescript project the recommended Template.bind notation in stories does not work.. it only says: loading source...

To Reproduce
I created a reproduction repo with create react app here: https://github.com/7yp0/storybook-storysource-bug
There are two copies of the same component (color-button and color-button2) each with different notation in the story. When you start you will see that color-button2 has the described bug.

System
OS: Linux 5.10 Ubuntu 20.04.3 LTS (Focal Fossa)
CPU: (16) x64 AMD Ryzen 7 PRO 4750U with Radeon Graphics
Binaries:
Node: 16.13.2 - /usr/bin/node
Yarn: 1.22.17 - /usr/bin/yarn
npm: 8.1.2 - /usr/bin/npm
npmPackages:
@storybook/addon-storysource: ^6.4.13 => 6.4.13
@storybook/react: ^6.4.13 => 6.4.13

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions