-
Notifications
You must be signed in to change notification settings - Fork 106
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
Docs pages : The docs page does not display the component code "No code available" #111
Comments
Hello, I also tested with a classic installation of storybook (without vite) and it's working.
Although the generated code does not seem to be very useful for the documentation of the component. For each story, it's the same code. It doesn't match the explanation of the functionality in the documentation. https://github.com/storybookjs/storybook/blob/next/docs/writing-docs/doc-blocks.md I will try also with docPages https://storybook.js.org/docs/vue/writing-docs/docs-page if I find another solution. Regards Mathieu |
Just shedding some light on this, As the name suggests, the @storybook/source-loader is a Webpack loader. So i guess this would have to be totaly re-written for Vite/Esbuild. |
Yes, we are having some issues like this with storybook-quickly-builder. We must therefore find alternatives. For the "No code available", now we use Format MDX for stories which work more or less ;-) |
If your stories accept args as input and you are using one of the supported frameworks (most popular frameworks except vue3 at this time), it should dynamically generate a snippet based on the return value of the story function. No loader needed. |
Same issue, any fix? |
Same issue, any fix? |
I think, the problem is vue-docgen-api. which used webpack. but vite haven't. @story/docs options is passed under that. Looking forward to your solution |
Hello,
In my storybook, the docs page does not display the component code. It displays "No code available" (see capture below)
I manage to reproduce it with a basic installation, I create a "vue3" project with Vite and then I install storybook with the storybook-builder-vite. In the default examples, I have the same problem.
Here is the commands, I execute in a new folder:
and my package.json
I try also with a react application, and I have the same issue
Is it a known problem? Where can I look to fix this, the "vite" configuration? or in the storybook code?
Thanks
Mathieu
The text was updated successfully, but these errors were encountered: