TypeError: undefined is not an object (evaluating '_NativeWindStyleSheet.create')
See original GitHub issueDescribe the bug
After adding the nativewind
package, my app failed to compile after running into the following error (after I ran expo start
):
TypeError: undefined is not an object (evaluating '_NativeWindStyleSheet.create')
To Reproduce Steps to reproduce the behavior:
- Create a blank expo app with
yarn create expo-app
- Install
nativewind
andtailwindcss
as per these instructions: https://www.nativewind.dev/quick-starts/expo - Start app with
expo start
and you should see this error.
This happens on a fresh install of an expo app, without adding any other packages.
Expected behavior Expected the app to compile without error.
Additional context
Using the latest versions of expo-cli
and nativewind
and tailwindcss
, and node v18.7.0
Issue Analytics
- State:
- Created a year ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
undefined is not an object (evaluating '_reactNative.Stylesheet ...
I am getting is pesky error 'undefined is not an object (evaluating '_reactNative.Stylesheet.create')' as can be seen in the screenshot as ...
Read more >"TypeError: undefined is not an object (evaluating '_ ... - GitHub
It should work fine. Reproduction. Create a new bare react-native project with react-native 0.65.1. Install react-navigation create basic navigation using ...
Read more >[React Native] TypeError: undefined is not an object ...
I am using v4 JS SDK with React Native. { "@sendbird/chat": "^4.0.0", "react-native": "0.67.3" } Can you help me with this error?
Read more >ERROR TypeError: undefined is not an object (evaluating ...
ERROR TypeError: undefined is not an object (evaluating '_this.props.navigation.navigate') | How To Make Searchbar Flatlist Clickable & Navigate To Detail ...
Read more >Render Error undefined is not an Object (evaluating _react ...
How to create a Offline Login form with Async Storage in React Native · Create Navigation between two screens in react-native · TypeError...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@perhp @amorriscode This is caused when you incorrectly set a
content
that covers your entire node_modules (for example./**/*
). This will be fixed in v3, but is always causing your builds to be much slower as Tailwind CLI needs to process every file in node_modules@marklawlor That was the problem, it all works a charm now 🙏
Thanks alot for the help ✌️