Skip to content

Natiwind styles using pnpm do not work. Tailwind does #268

@francois-pasquier

Description

@francois-pasquier

Describe the bug
Hey,

Following this issue: nativewind/nativewind#1428

This one is new because I believe it's different as I moved on with pnpm

I am having issues having nativewind styles being applied in a monorepo.

Basically, working on mobile or on next, if I set a color in a packages/app component, it won’t work.

It DOES work if I use this color directly inside of next or native

Tailwind works properly though!

My understanding is that nativewind does not watch properly the directories outside so tailwind can’t extract the required classes

Here is the repro:

You can either pnpm web or pnpm native to see the issue

Reproduction
https://github.com/francois-pasquier/nativewind-monorepo

Expected behavior
Styles should be applied

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions