-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Storyshoot] SyntaxError: Unexpected token import #2676
Comments
You could try something like this: or this: |
I ran into exactly the same thing (I'm not using create-react-app, but am using react and typescript), but don't understand your advice @ndelangen. Storybook itself runs fine, and my tests run fine with jest, too (though not using snapshots yet). When I add Storyshots, however, I get the same error message as above (though my existing test suite continues to run fine--it's just the Storyshots suite that fails). I'm not sure where to add |
Can you please share you jest config? |
@igor-dv double-checking my jest config, I realized that our |
@gperdomor come to think of it, you may have the same problem: make sure that your stories are covered by your |
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 60 days. Thanks! |
Issue details
Hi... I have problem when try to configure storyshoot in a project bootstrapped with
create-react-app
andreact-scripts-ts
I'm getting
Steps to reproduce
just crea te a new project
create-react-app clarity-react --scripts-version=react-scripts-ts
and configurestorybook
, create a story and configurestoryshoot
Please specify which version of Storybook and optionally any affected addons that you're running
The text was updated successfully, but these errors were encountered: