You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generating a component using @nx/react:component and style set to "tailwind", generates a styled-components template. This causes TS errors in the newly generated component.
had a same issue with library generation command nx g @nx/react:lib on react monorepo preset project with tailwind option selected. adding --style=none explicitly to generation command worked for me. thanks!
Current Behavior
Generating a component using @nx/react:component and style set to "tailwind", generates a styled-components template. This causes TS errors in the newly generated component.
Code for the generated component:
Expected Behavior
Generating a component using @nx/react:component and style set to "tailwind", should generate a "tailwind" component template.
GitHub Repo
No response
Steps to Reproduce
Create a new react-monorepo using NX
Generate a new component using
@nx/react:component
Generated component has a styled-components template, causes TS errors.
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: