You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think that the better workaround it to exclude stories from the tsconfig.app.json. And the solution is to make CLI edit the tsconfig.app.json to exclude stories.
I'd also suggest to show a warning message, kinda like this
start-storybook
> Loading tsconfig (or whatever)
! WARNING: You haven't excluded *.stories.ts files in your [path to tsconfig, taken from angular.json]. For more details see [link to code snippet and description]
In case someone just updated to the latest version and does not run sb init
Also, a timeout should be added (like 3s) to make it more visible
Bug or support request summary
Starting angular (not storybook) does not work.
Steps to reproduce
Result:
Please specify which version of Storybook and optionally any affected addons that you're running
Workaround
tsconfig.app.json
: Exclude all story filesWork summary
The reason why this happens is, that Angular might have changed something and does not support types for node out of the box.
Every Storybook-story needs e.g.
module
Lets say:
Angular normally does not need
module
(I believe it does when using SystemJS),Where to start
We need a way to use
module
in storybook (which was solved by #4464) but not for the actual angular app.Furthermore: The angular app should not even compile
*.stories.ts
files, which would solve this issue.Who to contact
@igor-dv
The text was updated successfully, but these errors were encountered: