Storybook: upgrade storybook@alpha to use emotion version 10

Created on 23 Oct 2018  路  13Comments  路  Source: storybookjs/storybook

I'm running into an issue using @emotion/core@next

export withCSSContext was not found in @emotion/core

this is due to the API changing in emotion 10.

dependencies question / support

Most helpful comment

@ndelangen any chance this could be released before that major update? I can help out if needed.

All 13 comments

@igor-dv do you know who might be able to look into this?

@lifeiscontent, looks like @emotion/core@10 is still in beta. We mostly try not to depend on unstable deps. Maybe we can make it into v4.1.0-alpha. CC @ndelangen @shilman

@igor-dv it's no longer in beta.

馃敟
I suppose it will be handled soon by our @dependabot-bot . But you can submit a PR 馃槈

If in one project use last versions of storybook and emotion it cases missing styles in storybook UI
screenshot 2018-12-12 at 09 45 17

Probably the problem is that mjs module is loaded which uses an import statement of @emotion/core. Since it tries to resolve it uses the newer @emotion/core 10 version. Hopefully they fix this in the near future since Emotion 10 has some strong features (such as the css prop/attribute now can be used without the babel plugin which enables to fully compile with only TypeScript)

update on the progress:

I merged the PR into a feature branch that will go live in january.

4086

nice

@ndelangen any chance this could be released before that major update? I can help out if needed.

This is merged into the v5 branch which is going into next any minute now

I'm getting following error

regeneratorRuntime is not defined
Was this page helpful?
0 / 5 - 0 ratings

Related issues

tomitrescak picture tomitrescak  路  3Comments

shilman picture shilman  路  3Comments

tirli picture tirli  路  3Comments

wahengchang picture wahengchang  路  3Comments

rpersaud picture rpersaud  路  3Comments