w-sm/md/lg are not an option tailwind ^3.4.1 Next.js
Unanswered
Mawhadmd posted this in #help-forum
MawhadmdOP
As the title says, i can't set width to predefined lg/md/sm. I was able to do this previously in another project
21 Replies
Maybe you had a plugin that did that in v3^, or you set them in the tailwindconfig, because that’s not a thing (it’s now in v4 tho)
Or you were using max-w-sm etc.
Or you were using max-w-sm etc.
no no i was sure using w-lg
no extension and no plugins
v4 is a thing?
oh so that's a next js problem
No sign of w-sm w-lg …
@LuisLl No sign of *w-sm w-lg* …
MawhadmdOP
how can i update the x in ^3(x).4.1?
@Mawhadmd v4 is a thing?
Yea came out like 3 weeks- 1 month ago or so, not very sure
MawhadmdOP
i remember typing npm update but nothing happend, i'll try it again then
If you wanna upgrade from V3 to V4 follow the upgrade docs from tailwind, they also have a codemon to do it all automatically for you, lots of things changed regarding set up and configuration.
I tried the tailwind codemon in the docs and didn’t have any issues, all worked fine. They say it’s not a guarantee tho, depends on your current config and stuff.
i'm just starting with next and this is the last thing i expected to struggle with
@Mawhadmd solved?