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
Storybook error in console after upgrade to 14.3.6 #10919
Comments
Hi there! Thanks for filing an issue. Can you please share a reproduction repository? It will really help me debug! |
Hi @mandarini, I'm trying to run Storybook with this configuration. We are using MDX, and I'm getting this error in console. Stories are loading, but it's endless because of this error. |
I see. It would be super helpful if you gave me a bit more information. Can you try to reproduce this error in a Nx workspace and share it with me? I would like to see the following:
|
|
|
Thank you, can you please try running |
of course: I'm sorry
|
Ok, thanks! First of all, I see your root
I don't see how a root Also, should it really be |
Also, did you use the Nx Storybook configuration generator to generate your Storybook configuration? |
In your root Similarly, there seem to be some missing imports in your project's |
In any case, it would be super helpful if you managed to reproduce this in a new Nx workspace, and share it with me, so that I can make sure I fully understand your setup. Steps you can follow to do this:
I am trying to do the same! :) I still have the following questions.
|
Btw @davidslaby don't worry, we'll get to the bottom of it, and we'll get your Storybook working once again! :) |
Your support is wonderful! Thank you :) |
It's weird because everything worked properly before the upgrade. |
We are using Nx for almost one and half year. The previous version was We've changed an array of stories a bit. I've already tried to create new workspace and there is not so much different config. Btw. Imports are missing just in the code I shared here. These are our internal libraries. So, it's not missing in the project. |
Thanks for getting back to me. We're getting there! :) Some more questions for you:
The truth is that I am having trouble reproducing this, to be able to help you properly. I, again, suggest, you try to create a minimum reproduction in a new Nx workspace and share it with me, and I will be able to give you a definitive solution. But please first try to answer the above questions, especially question number 5. This will help me understand the issue better. Thank you @davidslaby !! |
I believe @davidslaby is experiencing a conflict of differences between JS modules (commonjs and ES). This Storybook issue mentions about a few solutions. Although I'm not using a stack of the same techs, I haven't experienced what you mentioned in your 'test/main.js' file. Perhaps that's a side effect of what @mandarini mentioned about the entries in |
Hi there @davidslaby ! Do you have any updates on this? |
Hi @mandarini, sorry for late reply. I was off for a few days. I will get back to this on Monday. Thanks a lot for patience :) |
Hi there @davidslaby ! Do you still need help with this? |
Hi Katerina, I'm still struggling with that. Unfortunately, I didn't have time last week to stay focused on that. |
I tried to comment all the stories in config, and it didn't help. It shows error in |
Recently a nxext/nx-extensions PR got merged into main which may help in some way by shedding light on configuration changes. In the description of that PR is a script that should generate a Nx workspace, with Storybook using Webpack 5 and Babel 7. If you run that script, you can now replace the following line:
with
|
@mandarini Solved by adding |
Oh wow that' so great!!!! Thank you all!!! Thank you @marckassay for the suggestions! :D |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
main.js
test/main.js
The text was updated successfully, but these errors were encountered: