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.

Undefined is not an object

See original GitHub issue

According to the installation README, after installing and linking android “just works”, however it is not working for me. Working great on iOS simulator and on iOS device, but when running on both android simulator and android device I get the following error:

undefined is not an object (evaluation '_reactNative.NativeModules.RNTextInputMask.mask')

See error here: img_0144

I have confirmed that in the settings.gradle is the following:

include ':react-native-text-input-mask'
project(':react-native-text-input-mask').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-text-input-mask/android')

and in the app/build.gradle is the following:

compile project(':react-native-text-input-mask')

Any help would be greatly appreciated! Really loving this package on iOS, works great.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:11

github_iconTop GitHub Comments

3reactions
luskincommented, May 25, 2018

@warlock27 I just switched back to this package to try your solution and sure enough that worked. @ivanzotov you probably want to put this in the readme under installation as it seems several people are having this issue, sometimes linking doesn’t work and it’s always good to reiterate the manual installation process for both iOS and Android. Thanks @warlock27 for solving this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: 'undefined' is not an object - Stack Overflow
1. Use a Javascript debugger like Firebug or the built-in debugger of Chrome. · Can you give some sample data? – loganfsmyth ·...
Read more >
TypeError: undefined is not an object – React - DPS Computing
Simply, you're treating a variable like it is an object when it is not. 'undefined' means that your variable hasn't yet been defined...
Read more >
TypeError: 'undefined' is not an object in JavaScript
The “TypeError: 'undefined' is not an object” error occurs when a property is accessed or a method is called on an undefined object....
Read more >
27/3 - TypeError: undefined is not an object (evaluating 'family ...
Here's the message: TypeError: undefined is not an object (evaluating 'family[i].name') The code outputs the right values to the console, ...
Read more >
undefined is not an object (evaluating 'mw.config.get ...
TypeError: undefined is not an object (evaluating 'mw.config.get('wgFormattedNamespaces')[namespace].replace'). Closed, ResolvedPublic. Actions.
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