skip to Main Content

screens/HomeScreen.js: Use process(css).then(cb) to work with async plugins

Here is my HomeScreen.js

import { View, Text } from 'react-native
import React from 'react'

export default function HomeScreen() {
  return (
    <View>
      <Text className="text-red">HomeScreen</Text>
    </View>
  )
}

I am trying to use tailwindcss. Here is the link I am following.

2

Answers


  1. Chosen as BEST ANSWER

    I solved this error by changing the version to 3.3.2 and using yarn instead of npm.

    Here are the commands I followed:

    yard add nativewind
    yarn add --dev [email protected]
    

  2. I have also got the same error when i install the tailwindcss with npm.

    I have solved this by downgrading the [email protected]

    npm i --dev [email protected]
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search