Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jaysoo
Copy link
Member

@jaysoo jaysoo commented Nov 21, 2025

Current Behavior

When generating a React component with --style=tailwind, the component template incorrectly includes className={styles['container']} and attempts to import CSS modules.

Expected Behavior

Components generated with --style=tailwind should not include CSS modules imports or styles['container'] references, since Tailwind doesn't use CSS modules.

Related Issue(s)

Closes NXC-3511

…erator

## Current Behavior
When generating a React component with --style=tailwind, the component template incorrectly includes `className={styles['container']}` and attempts to import CSS modules.

## Expected Behavior
Components generated with --style=tailwind should not include CSS modules imports or `styles['container']` references, since Tailwind doesn't use CSS modules.

## Related Issue(s)
Fixes https://linear.app/nxdev/issue/NXC-3511/nxreact-lib-generator-creates-faulty-component-with-tailwind

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@jaysoo jaysoo requested a review from a team as a code owner November 21, 2025 19:46
@jaysoo jaysoo requested a review from Coly010 November 21, 2025 19:46
@netlify
Copy link

netlify bot commented Nov 21, 2025

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit a46bd6a
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/6920c1b2ce55400008cefdca
😎 Deploy Preview https://deploy-preview-33574--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@vercel
Copy link

vercel bot commented Nov 21, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Updated (UTC)
nx-dev Ready Ready Preview Nov 21, 2025 7:52pm

@nx-cloud
Copy link
Contributor

nx-cloud bot commented Nov 21, 2025

View your CI Pipeline Execution ↗ for commit a46bd6a

Command Status Duration Result
nx affected --targets=lint,test,test-kt,build,e... ✅ Succeeded 20m 11s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 2m 34s View ↗
nx-cloud record -- nx-cloud conformance:check ✅ Succeeded 11s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 2s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded <1s View ↗

☁️ Nx Cloud last updated this comment at 2025-11-21 20:10:43 UTC

@FrozenPandaz FrozenPandaz merged commit 8750521 into master Nov 21, 2025
20 checks passed
@FrozenPandaz FrozenPandaz deleted the NXC-3511 branch November 21, 2025 21:18
@github-actions
Copy link
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants