Non-client code included into bundle: __dirname
is not defined
#218
Labels
bug
Something isn't working
__dirname
is not defined
#218
Describe the bug
There is an error in the console saying the
__dirname
variable is not defined. The code that uses__dirname
variable is included both in development and production build and only when the Tailwind config is wrapped withwithTV
transformer.To reproduce
Steps to reproduce the behavior:
withTV
transformerExpected behavior
The code is not included into client bundle.
Screenshots
Desktop
Additional context
NextJS 14.2.14
The text was updated successfully, but these errors were encountered: