#PNPM equivalent of Styled Components

28 messages · Page 1 of 1 (latest)

delicate jacinth
#

I’ve tried DaisyUI, I don’t like it

I hate in-line css,
What is a pnpm friendly stying framework like styled components, that allows you to define a style and use it?

Styled components is easy, but it errors in a pnpm project

visual sirenBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

limber pewter
#

maybe try adding node-linker=hoisted to an .npmrc file and then run pnpm i again?

#

that might get styled components working

limber pewter
#

@delicate jacinth any luck?

delicate jacinth
limber pewter
#

i think that could make it work with pnpm

delicate jacinth
karmic oriole
#

and by dying I mean, dropping styled-system, slower contributions to the core repo, and questionable RSC support (this may have since been fixed)

limber pewter
#

database choice may not be relevant at the moment

delicate jacinth
delicate jacinth
limber pewter
#

ah right fair

#

have you tried using yarn?

delicate jacinth
limber pewter
#

yeah its a little bit better than npm

#

has some nice features (like yarn upgrade-interactive) and while its faster than npm, its not as fast as pnpm

#

also has much less compatability issues than with pnpm

delicate jacinth
#

Ok 👍 does it have any security issues with Mac?

limber pewter
#

nope

#

its developed by facebook and its very widely used

#

probably more popular than pnpm just because its more mature

delicate jacinth
#

Ok 👍 well, neon and drizzle requried pnpm, that’s the main reason why I even installed it.
Idk if yarn uses all the features that they “require” to be able to use to

karmic oriole
#

generally you can interchange pnpm and yarn.

Don’t want to reduce them to simple trade offs, but generally in my experience pnpm has better monorepo support, yarn is more mature (though pnpm is totally stable).

limber pewter