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

Module not found on Android only #822

Closed
dapriett opened this issue Sep 24, 2015 · 3 comments
Closed

Module not found on Android only #822

dapriett opened this issue Sep 24, 2015 · 3 comments

Comments

@dapriett
Copy link

Hello,

For some reason Android doesn't like the npm module key-tree-store, but works fine on iOS. I was using another module which had this as a dependency. I tried installing it directly and requiring it, I get the same error. It looks like it's there, so not sure why it can't find it - has no issues finding only modules I've added. Below is the error:

09-24 11:04:59.874: E/TNS.Native(4336): Error: Module "key-tree-store" not found
09-24 11:04:59.874: E/TNS.Native(4336): File: "/data/data/com.test.app/files/app/models/base-model.js, line: 0, column: 282
09-24 11:04:59.874: E/TNS.Native(4336): StackTrace: 
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'require', file:'/data/data/com.test.app/files/app/models/base-model.js', line: 2, column: 283
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'', file:'/data/data/com.test.app/files/app/models/base-model.js', line: 19, column: 11
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'require', file:'/data/data/com.test.app/files/app/models/user.js', line: 2, column: 277
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'', file:'/data/data/com.test.app/files/app/models/user.js', line: 1, column: 17
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'require', file:'/data/data/com.test.app/files/app/components/sidedrawer.js', line: 2, column: 291
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'', file:'/data/data/com.test.app/files/app/components/sidedrawer.js', line: 2, column: 17
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'require', file:'/data/data/com.test.app/files/app/tns_modules/ui/builder/builder.js', line: 2, column: 312
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'loadCustomComponent', file:'/data/data/com.test.app/files/app/tns_modules/ui/builder/builder.js', line: 152, column: 26
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'', file:'/data/data/com.test.app/files/app/tns_modules/ui/builder/builder.js', line: 88, column: 39
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'', file:'/data/data/com.test.app/files/app/tns_modules/xml/xml.js', line: 106, column: 13
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'EasySAXParser.parse', file:'/data/data/com.test.app/files/app/tns_modules/js-libs/easysax/easysax.js', line: 720, column: 23
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'XmlParser.parse', file:'/data/data/com.test.app/files/app/tns_modules/xml/xml.js', line: 153, column: 22
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'parseInternal', file:'/data/data/com.test.app/files/app/tns_modules/ui/builder/builder.js', line: 136, column: 19
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'loadInternal', file:'/data/data/com.test.app/files/app/tns_modules/ui/builder/builder.js', line: 207, column: 27
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'load', file:'/data/data/com.test.app/files/app/tns_modules/ui/builder/builder.js', line: 191, column: 27
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'pageFromBuilder', file:'/data/data/com.test.app/files/app/tns_modules/ui/frame/frame-common.js', line: 71, column: 27
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'resolvePageFromEntry', file:'/data/data/com.test.app/files/app/tns_modules/ui/frame/frame-common.js', line: 52, column: 20
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'Frame.navigate', file:'/data/data/com.test.app/files/app/tns_modules/ui/frame/frame-common.js', line: 110, column: 20
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'AndroidApplication.getActivity', file:'/data/data/com.test.app/files/app/tns_modules/application/application.js', line: 140, column: 26
09-24 11:04:59.874: E/TNS.Native(4336):     Frame: function:'app.init.getActivity', file:'/data/data/com.test.app/files/app/tns_modules/application/application.js', line: 111, column: 32
09-24 11:04:59.908: E/EGL_emulation(755): tid 755: eglCreateSyncKHR(1209): error 0x3004 (EGL_BAD_ATTRIBUTE)
@atanasovg
Copy link
Contributor

Hey @dapriett, thanks for reporting this, the issue is already fixed in the Android Runtime and it will be available with the 1.4 release (expected within two-3 weeks). As a temporary workaround you may add .js to the main entry in the package.json of the module.

Closing.

@dapriett
Copy link
Author

Thanks @atanasovg!

@lock
Copy link

lock bot commented Aug 30, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants