Giter Club home page Giter Club logo

Comments (16)

brandonfancher avatar brandonfancher commented on June 6, 2024 2

I think I found a fix. Upgrade "react-native-css-interop" to "~0.0.34" while using "nativewind":"4.0.36" in the apps/expo/package.json file and things should work correctly. Struggled for a few hours before I found the fix. Hope this helps !

This worked for me.

from create-t3-turbo.

ghry5 avatar ghry5 commented on June 6, 2024 1

Looks like a issue was posted on nativewind repo regarding this at nearly the exact same time as this one.
nativewind/nativewind#836

from create-t3-turbo.

adriangonzy avatar adriangonzy commented on June 6, 2024 1

I think I found a fix.
Upgrade "react-native-css-interop" to "~0.0.34" while using "nativewind":"4.0.36" in the apps/expo/package.json file and things should work correctly.
Struggled for a few hours before I found the fix.
Hope this helps !

from create-t3-turbo.

lanc33llis avatar lanc33llis commented on June 6, 2024

Indeed this is still an issue, but even 4dc3a40 is not working with nativewind. However I'm using ae2d8e3, albeit with some bugs I had to manually fix, with styles being properly applied. Perhaps going forward the main branch should be reserved for verified, official releases so that we don't have to manually reset to a working commit when bugs occur.

from create-t3-turbo.

zxcvbnmmohd avatar zxcvbnmmohd commented on June 6, 2024

Reverting nativewind back to "nativewind": "4.0.1", seemed to fix it for me.

from create-t3-turbo.

benrbowers avatar benrbowers commented on June 6, 2024

@adriangonzy That doesn't seem to work on android (emulator, ubuntu). Reverting to 4.0.1 seems to be the only fix for me.

from create-t3-turbo.

adriangonzy avatar adriangonzy commented on June 6, 2024

I tested on expo go and I made sure to clear metro cache.

from create-t3-turbo.

msagerup avatar msagerup commented on June 6, 2024

I get a diffent error,

warn - No utility classes were detected in your source files. If this is unexpected, double-check the content option in your Tailwind CSS configuration.

and no styles are being applied.

this is my tailwind config

import type { Config } from "tailwindcss";
// @ts-expect-error - no types
import nativewind from "nativewind/preset";

import baseConfig from "@acme/tailwind-config/native";

export default {
content: ["./src/**/*.{ts,tsx}"],
presets: [baseConfig, nativewind],
} satisfies Config;

Do I need to add something here or change something?

from create-t3-turbo.

adriangonzy avatar adriangonzy commented on June 6, 2024

I have no warnings on my side.
Here is my tailwind.config.ts in apps/expo

import type { Config } from "tailwindcss";
// @ts-expect-error - no types
import nativewind from "nativewind/preset";

import baseConfig from "@acme/tailwind-config/native";

export default {
  content: ["./src/**/*.{js,ts,jsx,tsx}"],
  presets: [baseConfig, nativewind],
} satisfies Config;

from create-t3-turbo.

adriangonzy avatar adriangonzy commented on June 6, 2024

@adriangonzy That doesn't seem to work on android (emulator, ubuntu). Reverting to 4.0.1 seems to be the only fix for me.

I tested on android emulator + macos (sonoma 14.4 Apple M1) and it works for me.

from create-t3-turbo.

benrbowers avatar benrbowers commented on June 6, 2024

@adriangonzy That doesn't seem to work on android (emulator, ubuntu). Reverting to 4.0.1 seems to be the only fix for me.

I tested on android emulator + macos (sonoma 14.4 Apple M1) and it works for me.

Ah, that's actually great to know. Can I ask what your node version is?

from create-t3-turbo.

adriangonzy avatar adriangonzy commented on June 6, 2024

Its v20.11.1

from create-t3-turbo.

benrbowers avatar benrbowers commented on June 6, 2024

Doesn't seem to want to work for me on mac/ios either, I'm not really sure what's going on. Running the tailwind CLI manually works as expected, it just doesn't want to work during the build process. The issue likely lies in my metro.config.js and the path to my config but so far nothing seems to work.

from create-t3-turbo.

benrbowers avatar benrbowers commented on June 6, 2024

Ok, working version for me seems to be 4.0.14

Literally the bare minimum version for me because this is the version gap-x starts working.

And lo and behold, there seems to be a commit that deals with the tailwind cli between 14 and 15. I tried passing 'npx tailwindcss' and 'yarn tailwindcss' to the cliCommand option in the metro.config, but nothing seems to work for version 4.0.15 and onward.

from create-t3-turbo.

juliusmarminge avatar juliusmarminge commented on June 6, 2024

A recent dependency bump seems to have fixed this for me atleast:

CleanShot 2024-03-24 at 15 16 41

from create-t3-turbo.

benrbowers avatar benrbowers commented on June 6, 2024

Got 4.0.36 working! The problem was yarn. I got away with using yarn v1 for far too long, but this seems to be the straw that broke the camel's back. Upgrading to yarn v4 seems have fixed everything. [email protected] now working on my intel mac with the iOS simulator, as well as on Ubuntu with android simulator.

Upgraded yarn like this:

> npx npkill
> yarn set version berry
> yarn install

from create-t3-turbo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.