-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Centered: remove typesVersions
attribute
#9907
Conversation
…ports hand written types from base dir Hand written types are inside addon base dir and so we can not use `typesVersions`⚠️ Be careful when writing types by hand, they should be compatible with TS3.5
@gaetanmaisse This may be because the dowlevel-dts in the I think we should just downlevel all
I'm on the next branch, I can take care of these things if you want and we can cherry pick it into master. Sorry about that! |
@lychyi Feel free to add commits to this branch/PR |
@gaetanmaisse Oh wait a minute 🤔 I did I may need to think on this one. Removing |
True! So I think we can:
Ok with that? |
@gaetanmaisse Yes, if this is the only package that has d.ts files in the root let's just remove typesVersions for now to fix this bug. What we can always do in the near future is downlevel all d.ts files and then delete |
@lychyi have you tested that the base issue is fixed with the latest alpha? |
@gaetanmaisse Hi Gaetan, sorry for the late response. I have not done testing on the latest alpha. Our repo is using 5.3 and would need some significant effort to adopt 6.0 right now. I could always help do other smoke tests but I probably won't be able to get to it until Saturday. |
@gaetanmaisse sure i can do the picking if you're confident in the changes. can you label each PR you want picked with the |
…tered Centered: remove `typesVersions` attribute
Issue
After testing #9847 on a real angular project I faced the following error:
TS2307: Cannot find module '@storybook/addon-centered/angular'.
After 🔍 it looks like it's due to the fact that this addon is exporting handwritten types from the addon rrot dir but TS was looking for types inside
dist
orts3.5/dist
folder.What I did
Removes
typesVersions
attribute because this addon exports handwritten types from base dir and so we should still let TS uses them instead of the one fromdist
orts3.5/dist
folder.