-
Notifications
You must be signed in to change notification settings - Fork 104
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
Basic CRA preset does not work on clean project #78
Comments
What I did:
In other words, the problem appears to be an incompatibility between Other comments suggest that |
It seems that this rule tries to transpile is-map and fails? |
I've found the issue here and will push it shortly. |
Fixed in |
Upgrading takes care of it, thank you so much for the quick turn around everyone! |
@mrmckeb and @shilman -- What was the cause and solution of this issue? I am running into the same problem with another (more mature) CRA project. Downgrading Please see: |
Top-level return is perfectly valid inside node modules; transpiling code you didn't author is unsafe; if you're going to transpile node_modules, then you should be sure to use settings that work on valid node modules :-) |
@n8sabes, this was caused by the CRA preset applying the wrong loader to files imported by Storybook. The correction is here: |
@ljharb you're right - but this was never meant to be transpiled. The loader was simply omitted from the original preset, the new preset was forked from that, and the bug was carried over. This is the related code: |
Hey I have tried setting up a new CRA project using CRA 3.3.0 and adding storybook (cli version 5.2.8) with the CRA preset and it immediately errors out. Below I am including the steps I took, the error message received, and a link to the git repo to reproduce the issue. Any help with what to do in this case would be great.
https://github.com/colingm/storybook-cra-error
The text was updated successfully, but these errors were encountered: