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
Newest release 6.2.0 causes issues with webpack4 aliases #14423
Comments
Was this working in a previous version of Storybook? If so, which one? Also, do you have a repro repo you can share? |
Hi Michael:
Yes, it is currently working in storybook v 6.1.21.
I can prepare a link so you can download the repo, but I'm away from my
computer at the moment, so it'll be tomorrow.
Thanks for the quick response.
~Scott
…On Wed, Mar 31, 2021, 5:47 PM Michael Shilman ***@***.***> wrote:
Was this working in a previous version of Storybook? If so, which one?
Also, do you have a repro repo you can share?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#14423 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHTN4R7NLWVX7ABX4AFQTTTGOQ67ANCNFSM42FVHJAQ>
.
|
thanks @jwir3 🙏 would love to get this figured out! |
@shilman You should be able to access my repository here: https://github.com/FoamFactory/aegir-dupe Sorry I didn't have a chance to prune it down to just the basics of reproducing this issue, but I'll give you a description of the repository. It's a storybook instance, with a number of components, but it also builds as a standalone npm library so it can be imported into a react application. To build/run the storybook instance, run The library building is the reason we have to set aliases for some of our assets. Namely, the webpack configuration files create the alias One more note - this is setup, as is, to work with storybook v 6.1.21. Thus, it should build and run without a hitch as-is. If you want to test storybook Thanks for helping me look into this! |
Another repro here from @stephiescastle 🙏 #3339 (comment) |
@jwir3 we looked at your repro but we saw a lot of different babel versions and thought your problems might be related to that. Then we looked at @stephiescastle's repro and found a bug in the
|
Sure.
I'm not sure what I should do to fix the babel issues you mentioned, do you
have suggestions?
~Scott
…On Tue, Apr 6, 2021, 6:20 AM Michael Shilman ***@***.***> wrote:
@jwir3 <https://github.com/jwir3> we looked at your repro but we saw a
lot of different babel versions and thought your problems might be related
to that. Then we looked at @stephiescastle
<https://github.com/stephiescastle>'s repro and found a bug in the
file-loader settings (NOT aliases) and fixed that in v6.2.3. Can you try
upgrading and see if that might fix your issue as well?
npx sb upgrade
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#14423 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHTN4VNP6UMFARYT6BOGVLTHLU6PANCNFSM42FVHJAQ>
.
|
Hello scott (@jwir3) I'm not sure what's going on within sass-loader that the alias doesn't seem to working right.. I was able to get storybook to work on your repro here: FoamFactory/aegir-dupe#1 I hope this helps you somewhat.. |
Hi @shilman: Unfortunately, it doesn't look as though this helped. I'm getting the same errors after upgrading using @ndelangen I'm going to try your suggestion, but I suspect that this won't work in tandem with the |
@ndelangen Yeah, unfortunately, with the changes you made, when I run
This was the reason we used the aliases in the I do appreciate the suggestions, though! Thank you for looking in to this. |
Seems like the imports in scss are broken honestly: imports https://github.com/ndelangen/aegir-dupe/blob/master/src/assets/styles/typography.scss#L23 which imports
but the relative import from Surely this is a bug in the webpack / loader setup; I can't imagine that's intended behavior. |
I found the issue. As suspected, it was an issue with my configuration. When importing, I was using Thanks to everyone for the suggestions. |
Describe the bug
The following setup:
with the following
.storybook/main.js
:It looks as though it can no longer resolve
@Assets
. I have verified that my webpack is still using webpack v4, so I don't believe this is an issue with a webpack upgrade. My suspicion is that this is a backwards compatibility issue as, I believe storybook expects me to be using webpack v5 (which may not allow for this syntax for aliases). However, I'm not 100% sure about this because I'm not a webpack expert. :)┆Issue is synchronized with this Asana task by Unito
The text was updated successfully, but these errors were encountered: