Description
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.