-
-
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
StoryShots ReferenceError: unknown base.cacheDirectory #1254
Comments
More details about the first error, it can be reproduced using the https://github.com/storybooks/storybook/tree/master/examples/cra-storybook After
to the
After installing the missing package with
I get the same error:
|
I worked around this issue by commenting out line 20 of
|
Thanks for the workaround. 👍 I can confirm that workaround with commenting out Hope we get an official patch soon. |
Another workaround is sticking to |
Using version 3.0.0 causes another error on my side.
|
@adonis-work perhaps try putting a |
(The above is my theory, thanks for posting @shilman), will try and confirm a bit later on. |
@tmeasday It helps with the first error but then I get same error as above:
|
Having the exact same problems. |
In storyshots, we are running babel directly, not through webpack, so we can't use this option, which applies to `babel-loader`. See https://github.com/storybooks/storybook/blob/master/app/react/src/server/config/babel.js#L15 #1254
I think i have the same issue. It seems like storyshots isn't aware of my webpack config. I get complaints about it not knowing how to load .css files. I have a .storybook/webpack.config.js which works fine for doing a regular storybook run |
Fixed in 3.1.6! |
This still seems to be affecting me, when using 3.1.9. |
Hi @ajhyndman -- can you open a new issue with a few more details? |
Yeah, I'll do a little more investigation. 👍 |
Whoops, I assumed this was fixed in All good now! |
Great! Thanks
…On Fri, 21 Jul 2017 at 2:47 pm, Andrew Hyndman ***@***.***> wrote:
Whoops, I assumed this was fixed in @storybook/addons-storyshots 3.1.6. I
hadn't upgraded @storybook/react to match.
All good now!
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#1254 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAIFylIQtIz-Y-Qa9EM-u0Pn23gl0sBoks5sQC17gaJpZM4N2ZpG>
.
|
I get
Unknown option: base.cacheDirectory
when trying to run StoryShots through Jest on vanilla project from create-react-app with only StoryBook added.StoryBook works ok with create-react-app.
There was also an error regarding
react-test-renderer
because installing StoryShots doesn't install it, but that can be fixed with npm install.The text was updated successfully, but these errors were encountered: