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 a function (evaluating 'instance.render()')

See original GitHub issue

Environment

  • OS: Windows 10
  • Node: 8.11.4
  • Yarn: 1.9.4
  • npm: 6.4.1
  • react-native-cli: 2.0.1
  • react-native: 0.57.5

Description

TypeError: undefined is not a function (evaluating ‘instance.render()’) This error is located at: in AppContainer (at renderApplication.js:33)

Reproducible Demo

— package.json —

{
  "name": "test",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "@babel/core": "^7.1.6",
    "babel-core": "^6.26.3",
    "react": "16.6.1",
    "react-native": "0.57.5"
  },
  "devDependencies": {
    "babel-jest": "23.6.0",
    "jest": "23.6.0",
    "metro-react-native-babel-preset": "0.49.2",
    "react-test-renderer": "16.6.1"
  },
  "jest": {
    "preset": "react-native"
  }
}

very simple. just “react-native run-android” and tada !!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:25 (4 by maintainers)

github_iconTop GitHub Comments

82reactions
jerinhocommented, Dec 10, 2018

finally i’ve found the solution. at least it works for me. i’ve moved to here. it even teaches you how to migrate from here 😆

9reactions
anehkumarcommented, Nov 26, 2018

Hi, Have you found any solution to this problem? I am facing the same problem

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: 'undefined' is not a function
Uncaught TypeError: 'undefined' is not a function. This is a common JavaScript error that happens when you try to call a function before...
Read more >
React Native: TypeError: Undefined is not a Function ...
When I run npm start for the emulator, I receive the following error: React Native Version Mismatch. Javascript: 0.57.2. Native: 0.55.4. I have ......
Read more >
TypeError: "x" is not a function - JavaScript - MDN Web Docs
The JavaScript exception "is not a function" occurs when there was an attempt to call a value from a function, but the value...
Read more >
undefined is not a function react-native, typeerror 0 native ...
undefined is not a function (evaluating 'instance.render()') react native. We are automatically closing this issue because it does not appear to follow any ......
Read more >
TypeError: includes is not a function in JavaScript | bobbyhadz
The "includes is not a function" error occurs when the includes() method is called on a value that is not of type string...
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