-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Addon-docs: When using storybook for angular, cant load docs #6725
Comments
Make sure you follow full setup instructions in the technical preview: https://docs.google.com/document/d/1un6YX7xDKEKl5-MVb-egnOYN8dynb5Hf7mq0hipk8JE/edit?usp=sharing |
I realize react was the primary target for storybook, and as I understand what some/all of it is written in... but I think documentation and examples (and even the full setup instructions) appear to be specifically written for @storybook/react, and potentially not some of the others. I'm running into problems attempting to get MDX support working like it should... for angular, and I have no idea what example syntax for MDX should look like for angular components. I tried the example above... and get
|
We'll be fixing up the docs soon. In the meantime, check out https://github.com/storybookjs/storybook/blob/next/examples/angular-cli/src/stories/addon-docs.stories.mdx |
Is there any update for the SB6 version angular document of using MDX? |
nothing yet, reopening cc @jonniebigodes |
Thanks for the update, meanwhile, is there any internal example I can reference to? the angular-cli example in the github source code doesn't have any latest code example. |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Lol love how there's no resolution and things get closed haha.. back to google |
@shilman , can this be reopened? This is a primary use-case that isn't documented. |
@bmayen This issue is already open?! 🤔 |
Ah, looks like stalebot had it |
Describe the bug
I tried to use storybook addon-docs for my angular storybook project. After creating my first mdx story, it fail with the message
SyntaxError: file: Unexpected token (15:9)
, pointing to JSX-syntax:return <div {...props}/>
.Thats why I installed
@babel/preset-react
. Now everything loads fine, my template also gets displayed, but unfortunately it fails when I click on Docs with the following StackTraceTo Reproduce
Steps to reproduce the behavior:
Expected behavior
It should render the given template and the documentation
Code snippets
If applicable, add code samples to help explain your problem.
System:
The text was updated successfully, but these errors were encountered: