Skip to content
Discussion options

You must be logged in to vote

I've just tried it out. Tailwind's automatic source detection will scan node_modules and find these invalid class-candidate look-alikes in the node-addon-api npm package and then ends up building some invalid CSS, causing the error.

You can work around this by adding a .gitignore to the root of the project that ignores node_modules.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@wongjn
Comment options

wongjn Jan 25, 2025
Collaborator

Answer selected by vijaykrishnan1003
@vijaykrishnan1003
Comment options

@vatshal1
Comment options

@wongjn
Comment options

wongjn Feb 9, 2025
Collaborator

@vatshal1
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants