Skip to content

tw is not defined when using as in a library outside of a nextjs folder #790

Closed Answered by ben-rogerson
stevebrowndotco asked this question in General
Discussion options

You must be logged in to vote

The withTwin.js setup is preferred as it allows babel to work alongside SWC - without it, Next.js disables SWC and only uses babel.
This isn't the worst, but there may be some speed improvements you're missing out on with a larger codebase.
Are you seeing a note in your terminal about that when you start the dev process?

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@stevebrowndotco
Comment options

@stevebrowndotco
Comment options

@ben-rogerson
Comment options

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