Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-client code included into bundle: __dirname is not defined #218

Open
kpyszkowski opened this issue Oct 8, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@kpyszkowski
Copy link

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 with withTV transformer.

To reproduce
Steps to reproduce the behavior:

  1. Wrap Tailwind config with withTV transformer
  2. Start the application and open browser console
  3. See error

Expected behavior
The code is not included into client bundle.

Screenshots
image

Desktop

  • OS: macOS Sonoma 14.1
  • Browser: Google Chrome
  • Version: 129.0.6668.89

Additional context
NextJS 14.2.14

@kpyszkowski kpyszkowski added the bug Something isn't working label Oct 8, 2024
@craigrileyuk
Copy link

Same issue, same circumstances, when using the withTV transformer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants