Closed getaaron closed 1 year ago
Hey there, thanks for posting this demo.
I spent a little while troubleshooting but wasn't too sure of the cause.
I do see there's a funky looking twin config in babel-plugin-macros.config.js
(not the cause of this issue though).
Take a look at the official next-emotion example for a working configuration using the src folder - sorry I couldn't help out more here.
I have a next.js project. When I start it and try to load anything, I get:
As far as I can tell I am only importing
GlobalStyles
once so I'm unsure why it's getting built twice.My
package.json
dependencies are:and
devDependencies
:I've posted a reproducible demo here - just clone,
yarn install
, andyarn dev
: https://github.com/getaaron/demoI read through https://github.com/ben-rogerson/twin.macro/issues/277 and tried some of the suggestions there but it didn't resolve the issue. I'm not sure if this is a bug or user error, so apologies in advance if I did something simple wrong 🥲