-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Upgrading Storybook and addon-knobs from 5.1.9 to 5.2.5 errors #8730
Comments
@mattfelten I'm wondering if it's not a TypeScript version issue which one are you using? |
It could be. We're using a relatively old version of TS. |
After investigation, it looks like you have to use TS
@shilman @ndelangen is there a place yet where there are version requirements in SB repo? |
Oh interesting. Ok. I can start there then to see if I can update TS for our project. |
Yeah, I'm able to reproduce this. From a brand new fresh setup, downgrading TS to Would be good to have this documented somewhere. |
@gaetanmaisse can we encode that version requirement in package.json somehow? AND probably on the top of the typescript page: https://storybook.js.org/docs/configurations/typescript-config/ |
I'm open to contributing the changes if you have a place that would make sense. Maybe being a peer dependency of |
thanks @mattfelten! that works for me |
i have same problem here, I use |
@elcordova Angular v7 uses a lower version of Typescript compared to what Storybook requires (v3.4). Angular officially noted support for TS 3.4 and dropped older versions as of 8.0.0 back in May (see Angular Changelog), so you'll need to upgrade to Angular v8 for that. |
If it helps anybody, I had the same issue and currently we are using Typescript 3.3 and React in our project. So I just used and imported |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
Describe the bug
Build breaking when upgrading from 5.1.9 to 5.2.5. I've only upgraded
@storybook/react
and@storybook/addon-knobs
to try to isolate the issue. If I leave knobs at 5.1.9, I get different errors, which is probably because of version differences.Could it be something with tslint? All the errors are typings related.
Code snippets
System:
The text was updated successfully, but these errors were encountered: