Doesn't work with CodeSandbox React template
adamerose opened this issue · comments
Adam Rose commented
What steps are needed to get twin.macro
working with the default CodeSandbox React template?
What I tried was:
- Fork the React template
- Install
twin.macro
andtailwindcss
as dependencies - Add an empty file called
empty.js
in the project root as described here #9 (comment), and refresh the page - It gets stuck forever on
Transpiling Modules...
Ben Rogerson commented
I remember adding that strange empty.js
file in CodeSandbox too.
Btw none of that nonsense since moving the default twin example to StackBlitz 🤌
In CodeSandbox the default template uses react-scripts
aka create-react-app
so check out either emotion setup instructions. or styled-components setup instructions..