question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Storybook setup with Tailwind and Emotion

See original GitHub issue

Describe 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 image

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:open
  • Created 3 years ago
  • Reactions:2
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
mj12albertcommented, Dec 10, 2020

Hi, @pgrekovich I solved this with this approach the difference is that I add @emotion/styled on an alias too.

How did you alias @emotion/styled ? I tried but still getting stuck at Can't resolve '@emotion/styled/base'

2reactions
mverissimocommented, Nov 26, 2020

Hi, @pgrekovich I solved this with this approach the difference is that I add @emotion/styled on an alias too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Storybook with Tailwind and Emotion setup - Stack Overflow
It will install Storybook for you with the ideal settings. Having done that, you'll have a ready-to-use emotion-powered Storybook.
Read more >
Integrate Tailwind CSS with Storybook
How to setup Tailwind CSS and Storybook. Storybook.js is a fantastic tool for developing and showcasing UI components in isolation.
Read more >
Storybook With Tailwind And Emotion Setup - ADocLib
How to Setup React Testing Library for Material UI Styled component with TypeScript; Snapshots of Stack Overflow works best with JavaScript enabled WhereΒ ......
Read more >
How to Build a Fullstack Next.js App (with Storybook ...
js is setup to process your Tailwind classes, but by default Storybook is not. Storybook Support for Tailwind. If you don't have Storybook...
Read more >
Setting up Storybook with React, TypeScript and Emotion
Learn how to setup Storybook with React, TypeScript, and Emotion. ... Building Component Libraries with Tailwind and TSDX. frontendblog.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found