Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

fix: fix react router typings with tsconfig path #257

Merged
merged 2 commits into from
May 10, 2022

Conversation

adamperrry
Copy link
Contributor

@adamperrry adamperrry commented May 6, 2022

See this github issue for context on this fix. Essentially, Storybook 6.4 depends on react-router-dom v6, which includes a dependency on an updated version of react-router that includes typings. We're relying on a version that requires us to use @types/react-router, but the types in that package don't take precedence - react-router v6's index.d.ts does.

The best fix would be to upgrade react-router-dom, but that would require more refactoring and more updates in Local core and maybe even add-ons. We could also update storybook to v6.5, but that is still in beta and will probably be a larger update with more problems. So until then, this should fix it, especially since we aren't compiling any code in node_modules that would depend on v6 typings afaik.

@adamperrry adamperrry requested a review from a team as a code owner May 6, 2022 19:50
Copy link

@dani-j-d dani-j-d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@adamperrry adamperrry merged commit 3fee0ac into master May 10, 2022
@adamperrry adamperrry deleted the adam/fix/router-path branch May 10, 2022 14:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants