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: Object.values requires that input parameter not be null or undefined

See original GitHub issue

Description

I’m getting TypeError: Object.values requires that input parameter not be null or undefined when using a useAnimatedStyle hook

Screenshots

Screenshot 2020-09-17 at 23 41 40

Steps To Reproduce

  1. Create useAnimatedStyle hook
  2. Receive error

Expected behavior

I expect the animated style to work

Actual behavior

It throws an error

Snack or minimal code example

(working on a repro)

Package versions

  • React: 16.13.1
  • React Native: 0.63.2
  • React Native Reanimated: 2.0.0-alpha.6

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

5reactions
terrysahaidakcommented, Sep 18, 2020

Hi. Make sure you used babel plugin as well as run packager with --reset-cache

1reaction
alex-adestechcommented, Sep 19, 2020

Solved it!

I didn’t realized I had 2 babel files, so at the end this worked in release mode:

.babelrc file

{
  "presets": ["module:metro-react-native-babel-preset"],
  "plugins": [
    "transform-remove-console",
    "react-native-reanimated/plugin",
  ],
}

babel.config.js file

module.exports = {
  presets: ['module:metro-react-native-babel-preset'],
  plugins: [
    'transform-remove-console',
    'react-native-reanimated/plugin',
  ],
};
Read more comments on GitHub >

github_iconTop Results From Across the Web

Object.entries requires that input parameter not be null or ...
Issue. The issue is likely occurring on the initial render. You are attempting to convert undefined into an array of object entries.
Read more >
Object.values requires that input parameter not be null or ...
Hey,. I'm trying to make a mobile application and the screen in question is supposed to show data received from an API.
Read more >
Object.Entries Requires That Input Parameter Not ... - ADocLib
TypeError : Cannot convert undefined value to object on someVariable.closure #. This error frequently happens when metro cache is not updated. Clear it...
Read more >
Object.values requires that input parameter not be ... - 인프런
IconButton 만들기에서 Object.values requires that input parameter not be null or undefined. 라는 오류가 나타나는데 왜 그런걸까요 ?
Read more >
object.entries requires that input parameter not be null or ...
Coding example for the question object.entries requires that input parameter not be null or undefined react native?-React Native.
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