question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: undefined is not an object (evaluating '_NativeWindStyleSheet.create')

See original GitHub issue

Describe 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:

  1. Create a blank expo app with yarn create expo-app
  2. Install nativewind and tailwindcss as per these instructions: https://www.nativewind.dev/quick-starts/expo
  3. 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:closed
  • Created a year ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
marklawlorcommented, Oct 10, 2022

@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

0reactions
perhpcommented, Oct 11, 2022

@marklawlor That was the problem, it all works a charm now 🙏

Thanks alot for the help ✌️

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found