Skip to content

Error when trying to setup twin.macro Next.js TypeScript Styled Components #774

Answered by leodevbro
leodevbro asked this question in Q&A
Discussion options

You must be logged in to vote

My bad, Here I found the solution:

#516 (reply in thread)

"you can adjust your directories in withTwin.js - so it doesn't box you in to a folder structure."

My project has src folder, and I added path.resolve(__dirname, 'src'), in includedDirs array in the withTwin.js file and now everything seems working.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fredrivett
Comment options

Answer selected by leodevbro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants