Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

NextJS - custom pageExtension makes no classname generation by both content and safelist #8339

Closed
spilist opened this issue May 13, 2022 · 1 comment

Comments

@spilist
Copy link

spilist commented May 13, 2022

What version of Tailwind CSS are you using?

  • 3.0.24

What build tool (or framework if it abstracts the build tool) are you using?

What version of Node.js are you using?

  • 16

What browser are you using?

  • Latest Chrome

What operating system are you using?

  • MacOS Monterey (12.1)

Reproduction URL

Describe your issue

  • When I add pageExtensions option to next.config.js, both content and safelist don't generate specified classnames. When I rolled back to default next config, they start working.
  • I suspected next's pageExtensions config somewhat changes how to resolve those pages, but still have no idea why safelist is not working either. I'm not sure where does this issue come from, but because of safelist I though it also can be an issue of tailwindcss.

image

@adamwathan
Copy link
Member

Hey! Super weird one, it looks like Next.js is actually completely ignoring globals.css entirely when using custom page extensions:

https://stackblitz.com/edit/github-mcndf4-kjpkp1?file=styles/globals.css

image

So I don't think this is a Tailwind CSS issue 🤔 Going to convert this to a discussion but hopefully can track down what's happening.

@tailwindlabs tailwindlabs locked and limited conversation to collaborators May 13, 2022
@adamwathan adamwathan converted this issue into discussion #8341 May 13, 2022

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants