-
-
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
Fix jsconfig support with CRA #9324
Conversation
This pull request is being automatically deployed with ZEIT Now (learn more). 🔍 Inspect: https://zeit.co/storybook/monorepo/jj3znhgbh |
cc @mrmckeb Does this also need to be applied to |
Hi @Hypnosphi, as @shilman noted, this has been deprecated and is now a separate package. I'd rather not introduce any changes here, as we will remove this completely in the next major. Have you tried the new preset - |
As long as it's included by default, we should at least fix the bugs |
@mrmckeb What about all those lines? Are they, for some reason, relevant for user app itself but not for storybook? |
@Hypnosphi, out of interest, are you seeing this in the new preset - or just the deprecated in-built preset?
|
If you mean #9077, it reproduces in the default setup, i.e. with deprecated preset. I didn't try to reproduce it with the new preset, but I think it should work OK, because you have What concerns me about the new preset is that CRA has some additional logic (linked above), that new preset doesn't include. So I think that getting the actual results from |
The new preset does have additional logic, which resolves conflicts between Storybook and CRAs configs. I'll leave this to @shilman to make the call - this PR looks fine to me, but again I'd much rather recommend people to move to the new preset (now the default) than to use this one. |
@Hypnosphi, hello! What status of this issue? Are there any difficulties with merging this PR? |
@vasilii-kovalev I don't have any information other than what you can read here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll merge this and patch it back to 5.3. We'll remove the built-in CRA preset in 6.0, so as far as I'm concerned it doesn't matter whether the code gets a little more complex @mrmckeb.
Issue: #9077
#6560 reportedly introduced support for
jsconfig.json
. Unfortunately, it lacked some important parts of logic used in CRA, like resolving thebasePath
relative to app directory.Instead of copy-pasting the full logic from CRA, I just re-use the results from
craWebpackConfig