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
[Bug]: annot access 'kt' before initialization #21357
Comments
Do you a have a reproduction repo you can share? If not, can you create one? See how to create a repro. Thank you! 🙏 Also, does the problem go away when you remove |
@shilman We use turbo-build to pass the build step. Else the minifier wreck the inline css. For example :
Not sure how to get around this but ill give it a try... |
Now building without storybook-addon-turbo-build. Same issue though.
(Now using 7.0.0-beta.61) |
Sorry, problem is now gone! I was running local webserver pointing to an older output folder. I can confirm that storybook-addon-turbo-build is the problem. Turning it off make problem go away. Turning it on make problem appear again! |
Hi!! @shilman @MattiasJa, I am facing the same issue after building the storybook for autodocs, can you please have a look and lemme know if you have any solution #26944 Thanks in advance |
Hi @hiren3897, for us the issue resolved after removing turbo-build. |
Thanks for the response @MattiasJa. Yes, I guess the problem is in deps, I tried to remove all plugin except addon-docs for building auto-docs. It is strange because when we run the storybook locally, everything is rendered with complete documentation, but when we build with vite-builder, we get an error stating that something cannot be used before init!!! I was in
Basically, from 'process.env.NODE_ENV!=="production"&&(isBrowser5=typeof document<"u" It cannot be used prior to initialization, as stated. I am trying to figure out what, where, why should not be used before initialization:( |
Describe the bug
Migrated to v7 and sometimes get errors when expanding a new section in the left pane :
hitting F5 to reload story and everything is fine. Expand a new section in the left pane, sometime ok and sometime same error...
This only occur production mode, using storybook build. Dev mode - no problem.
To Reproduce
Start local webserver and navigate to localhost.
Navigate sections in left pane to expand list of stories. Seems like first story in the list (that gets auto selected on expand) is not loaded!?
System
Additional context
The text was updated successfully, but these errors were encountered: