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: null is not an object (evaluating 'cache.registered')

See original GitHub issue

I tried to implement react-select in my projet, I started using the example provided on the official website but when I launch the app it crashes and I’m getting the following error:

TypeError: null is not an object (evaluating ‘cache.registered’)

  • node_modules@emotion\core\dist\core.browser.cjs.js:61:48 in render
  • node_modules\react-native\Libraries\Renderer\oss\ReactNativeRenderer-dev.js:12671:25 in updateContextConsumer

Here is my code:

import React, { Component } from 'react'
import Select from 'react-select'

const options = [
  { value: 'chocolate', label: 'Chocolate' },
  { value: 'strawberry', label: 'Strawberry' },
  { value: 'vanilla', label: 'Vanilla' }
]

const Test = () => (
  <Select options={options} />
)

export default (Test)

And then I’m render the Test component somewhere else in my App

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
Rall3ncommented, Jun 18, 2020

As it seems like no one likes to answer here with a cause of the issue:

react-select is currently strictly programmed to be used in the web. It will definitely not work with react-native.

3reactions
bladeycommented, Jun 19, 2020

Thanks for pointing this our @Rall3n. I’m going to close this issue since react-native is not supported.

Read more comments on GitHub >

github_iconTop Results From Across the Web

expo - react native:typeerror null is not an object (evaluating ...
Are you trying to use this on an emulator that doesn't have a sim card? See https://github.com/pocesar/react-native-sim-data#caveats in the ...
Read more >
How to Fix TypeError: Null is Not an Object in JavaScript
The JavaScript error TypeError: null is not an object occurs when a property is accessed or a method is called on a null...
Read more >
null is not an object (evaluating '_reanimatedmodule.default ...
I know there is another question with this error, but it's not my problem somehow. I am using react-native-pager-view , and was using...
Read more >
Troubleshooting - React Navigation
Incorrect cache of Metro bundler; Missing peer dependency ... If you're not using Expo, run: ... I'm getting an error "null is not...
Read more >
ServiceWorkerContainer.register() - Web APIs | MDN
An object containing registration options. ... The HTTP cache will not be used for the main script or its imports. All service worker...
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