-
-
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
Storybook stops working on Create-react-app (CRA) after ejecting #6690
Comments
I think this can be achieved by updating tsconfig.json to match the one provided in this other issue comment. Just adding |
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! |
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! |
The CRA config doesn't support ejection right now, you'd need to write your own config in that case - as we no longer have a reliable source. |
Let me know if you need a hand with that, in the meantime I'll close this off as it's expected behaviour. Also, consider forking |
Hello! I've encountered the similiar issue and based on @mrmckeb response about separate configuration drafted a configuration that gave me the same behaviour which I had before ejecting CRA: storybookjs/presets#72 (comment) |
Describe the bug
Storybook stops working, after ejecting CRA. Gives
Module parse failed: Unexpected token
error.To Reproduce
Steps to reproduce the behavior:
npx create-react-app storybook-typescript-eject --typescript
andcd storybook-typescript-eject
.npx -p @storybook/cli sb init
npm run storybook
npm run eject
pressy
to confirm.stories/index.stories.tsx
npm run storybook
Expected behavior
I expected the same config that worked before ejecting would work after.
System:
The text was updated successfully, but these errors were encountered: