TypeError: null is not an object (evaluating 'cache.registered')
See original GitHub issueI 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:
- Created 4 years ago
- Comments:9 (1 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
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 withreact-native
.Thanks for pointing this our @Rall3n. I’m going to close this issue since
react-native
is not supported.