tailwindcss wont work unless use cdn
Hello everyone!
Just started with "start". Try to hookup tailwindcss using guid - did not work. If use script with cdn it is working. Use Cursor agent to figure out - agent is dummy:) sorry Cursor!
Did anyone have had any problems with it?
P.S. For experiment: use v4 first, then switch to v3... - same thing. If check resulting html: body had tailwind classes applied...
3 Replies
national-goldOP•2mo ago
I actually fixed it, not the best way but:... __root.tsx..
import '../styles/app.css'
...
...
link: [
{
rel: 'stylesheet',
href: '/src/styles/app.css',
},
],
In some reason when I use:
import appCss from '../styles/app.css'
...
...
link: [
{
rel: 'stylesheet',
href: appCss',
},
],
It does not workwee-brown•2mo ago
Try this
national-goldOP•2mo ago
yeah, I did, it is actually how you suppose to do by the book and it wasn't working in some reason. App wont see "appCss" in link: [...