Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined is not a function (evaluating 'this._lazyCallableModules[name]()') #1493

Closed
yogeshchoudhary147 opened this issue Dec 28, 2018 · 3 comments

Comments

@yogeshchoudhary147
Copy link

yogeshchoudhary147 commented Dec 28, 2018

Initial Error:
Error: ENOENT: no such file or directory, open '/Users/apple/Documents/.../android/app/build/intermediates/assets/debug/CodePushHash'

react-native-code-push 5.3.5
RN 0.55.4
Gradle 3.2.1

Solution tried:
Then I tried solution mentioned here of modifying "project.ext.react" in app/build,gradle. Now, I am perfectly able to run debug app but when I am running release app on android emulator then I am getting below mentioned errors on 2nd app launch.

[ERROR] [Global-Fatal] undefined is not a function (evaluating 'this._lazyCallableModulesname') value@/data/user/0/com.udaan.android/files/CodePush/452bbaf8f06ae3aeaa26826d4cad0ce04ab863c2fc3ffd31de75f435210c9ac6/CodePush/index.android.bundle:30:2504

[ERROR] [Global-Fatal] undefined is not an object (evaluating 'customBubblingEventTypes[topLevelType]') extractEvents@/data/user/0/com.udaan.android/files/CodePush/452bbaf8f06ae3aeaa26826d4cad0ce04ab863c2fc3ffd31de75f435210c9ac6/CodePush/index.android.bundle:121:17304

Any idea what's this related to?

I did this to create js bundle:
react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/

@yuri-kulikov
Copy link
Contributor

Hey @yogeshchoudhary147,
Thanks for reporting!

It's hard to say how react-native 0.55 will work with gradle 3.2 with this workaround. We need some time to check this configuration.
Maybe you can provide us a simple reproducible demo so we could test it directly?

@yuri-kulikov
Copy link
Contributor

Hi @yogeshchoudhary147,
Sorry for the delay!

I've created a project with react-native-code-push 5.3.5, RN 0.55.4 and Gradle 3.2.1 (with project.ext.react workaround) and everything works fine.

You can check my demo project here: Issue1493H.zip

Steps to run:

  • Unzip the project
  • npm install
  • Set your signingConfigs in /android/app/build.gradle file
  • Run the app from Android Studio

You can check this demo and share the results with me.

@yogeshchoudhary147
Copy link
Author

Hi @yuri-kulikov

Thanks for your reply. I missed to update here but the error has disappeared as of now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants