tailwind class content does not render in nested Lerna packages
See original GitHub issueHey, I need some help to improve my design-system project. so I added Lerna for management multi-app in nuxt also use @nuxtjs/tailwindcss. in Lerna config and nuxt config everything is ok but when use tailwind CSS for my component design class content doesn’t know tailwind although tailwind CSS works fine.
"@nuxtjs/tailwindcss": "^4.2.1"
see my directory
see my loaded component
and the result
in the last image, you can see doesn’t load class tailwind.
thank you for your time.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:12
Top Results From Across the Web
tailwind class content does not render in nested Lerna packages
Hey, I need some help to improve my design-system project. so I added Lerna for management multi-app in nuxt also use @nuxtjs/tailwindcss.
Read more >tailwind class content does not render in nested Lerna packages
in Lerna config and nuxt config everything is ok but when use tailwind CSS for my component design class content doesn't know tailwind...
Read more >Tailwind CSS code completion doesn't work if package.json ...
You've got it right, the Tailwind CSS plugin is designed to work only in files within the node project with dependency on tailwndcss...
Read more >React Monorepo Using Yarn Workspaces Only (No Lerna)
I was looking to convert one of my GitHub repos to hopefully become a monorepo. I did a little research and found out...
Read more >Setup a Monorepo with PNPM workspaces and speed it up ...
In this article we're going to have a deep dive into setting up a new monorepo using PNPM workspaces that hosts a Remix...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found the solution for this version of tailwind set purge content like this
and tailwind in nuxt.config add
tailwind.scss content
I find this option in content version +3 tailinwd.css and move into nuxt/tailwind by purge content. In fact, tailwind need this patch to find and watch code in content for compile
I’ve the same problem. Tailwind classes won’t work in my external components which I’ve imported to my project folders.