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

Tailwind CSS classes are missing on build using baseUrl and path in tsconfig.json #18260

Closed
Steffi3rd opened this issue Oct 26, 2020 · 2 comments

Comments

@Steffi3rd
Copy link

Bug report

Tailwind is not working on production (TailwindCSS classes are missing)

Describe the bug

I'm using Next.js and Typescript. It works well on develop yarn dev, but TailwindCSS is not working on production. (yarn build.

I have this is my .tsconfig.json because I don't want to use those kind of "../../.." paths.

    "baseUrl": ".",
    "paths": {
      "@/*": ["*", "./src/*"]
    }

How can I fix this to make Tailwind works in production?

Thanks

Expected behavior

TailwindCSS classes should be defined.

@Steffi3rd
Copy link
Author

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants