Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Update to NativeWind V4 #448

Open
angel-luis opened this issue Nov 9, 2023 · 14 comments
Open

Request: Update to NativeWind V4 #448

angel-luis opened this issue Nov 9, 2023 · 14 comments

Comments

@angel-luis
Copy link

Since NativeWind V4 has been released, it would be nice to get an update of the monorepo with-tailwind with the last version! Thank you in advance.

@mikevocalz
Copy link

mikevocalz commented Nov 17, 2023

Since NativeWind V4 has been released, it would be nice to get an update of the monorepo with-tailwind with the last version! Thank you in advance.

Try this @angel-luis : https://github.com/mikevocalz/solito-nativewind-v4

@nandorojo
Copy link
Owner

PR is welcome

@rpweb
Copy link

rpweb commented Nov 18, 2023

Since NativeWind V4 has been released, it would be nice to get an update of the monorepo with-tailwind with the last version! Thank you in advance.

Try this @angel-luis : https://github.com/mikevocalz/solito-nativewind-v4

@mikevocalz That's cool!
screenshot
Any clue how I can solve this? It also appears during build. I checked https://www.nativewind.dev/v4/getting-started/typescript but it's already included in your branch.

@nandorojo
Copy link
Owner

I think that would indicate you’re missing some sort of declaration file. You may need to mention it in your tsconfig’s includes array.

@rpweb
Copy link

rpweb commented Nov 19, 2023

app-env.d.ts is already included in https://github.com/mikevocalz/solito-nativewind-v4/blob/main/apps/next/tsconfig.json#L19 which containes nativewind/types.
Not sure what I am missing.

@xinha-sh
Copy link

@rpweb @angel-luis nativewind/nativewind#600 (comment) The v4 is an accidental npm release. I guess lots of bugs being encountered. So tread well.

@rpweb
Copy link

rpweb commented Nov 23, 2023

upgrade to "nativewind": "4.0.16", solved it for me in pages router, but not in app router. nativewind/nativewind#673

@xinha-sh
Copy link

@rpweb I've been testing the nativewind v4 with solito. There are many random things happening. Raised few bugs. The v4 is currently far from stable in my view.

@rpweb
Copy link

rpweb commented Dec 2, 2023

@rpweb I've been testing the nativewind v4 with solito. There are many random things happening. Raised few bugs. The v4 is currently far from stable in my view.

@xinha-sh With app router? Could you share how you set it up?
I am aware of those bugs, but I would like to play around with it asap. Still facing this issue: nativewind/nativewind#673

@ammarfaris
Copy link
Contributor

PR is welcome

would it be better to update the existing starter (with-tailwind) or create a new one (something like with-nativewind-v4 ) ? @nandorojo

@JWesorick
Copy link

Anyone have NextJS App Directory working with Nativewind v4?

@trevorpfiz
Copy link

Anyone have NextJS App Directory working with Nativewind v4?

I tried, but I was having to add use client to the root layout.tsx file for some reason? There were some bugs and I planned to revisit it.

@JWesorick
Copy link

JWesorick commented Jan 31, 2024

I got it working by just following the directions and then adding /** @jsxImportSource react */ to the top of my server components like layout.tsx and page.tsx. Also I updated to next@npm:14.1.0 [d369e] but not sure if that was required.

@SantiMNV
Copy link

I have just published a version with NextJS app router and Nativewind v4

https://github.com/SantiMNV/solito-nativewind-v4-app-router

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants