Storybook setup with Tailwind and Emotion
See original GitHub issueDescribe the bug
When setting up Emotion with Tailwind I get the following error: Module not found: Error: Can't resolve '@emotion/styled/base'
Expected behavior Should be able to use Emotion with Tailwind
Screenshots
Additional context my package.json file:
βdependenciesβ: { β@babel/coreβ: β^7.8.4β, β@emotion/babel-pluginβ: β^11.0.0-next.13β, β@emotion/coreβ: β^10.0.27β, β@emotion/cssβ: β^11.0.0-next.12β, β@emotion/reactβ: β^11.0.0-next.15β, β@emotion/serverβ: β^11.0.0-next.14β, β@emotion/styledβ: β^11.0.0-next.15β, β@material-ui/coreβ: β^4.9.1β, β@storybook/addon-actionsβ: β^6.0.12β, β@storybook/addon-knobsβ: β^6.0.12β, β@storybook/addon-notesβ: β^5.3.19β, β@storybook/addonsβ: β^6.0.1β, β@storybook/reactβ: β^6.0.1β, β@tailwindcss/uiβ: β^0.5.0β, β@tailwindcssinjs/macroβ: β^0.7.2β, β¦
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:12 (2 by maintainers)
How did you alias
@emotion/styled
? I tried but still getting stuck atCan't resolve '@emotion/styled/base'
Hi, @pgrekovich I solved this with this approach the difference is that I add
@emotion/styled
on an alias too.