Mattermost, Inc.

Android App Import References Not Found

Hi,
I’m working on compiling my own copy of the Mattermost mobile android application. The problem that I’m currently facing is that the imports in the javascript files are not able to find the references.

For example:
I have to change
import {DeviceTypes} from 'app/constants';
to
import {DeviceTypes} from '../../../app/constants';
in the file for the reference to be found.

I’m assuming that there is something that I am missing because I am unable to find any topics online about this, but I haven’t been unable to figure it out.

Any help is greatly appreciated! Thanks!

Hi @jborne536,

Thanks for your feedback,

Are you following this documentation from our docs site?

Hi @lindy65,

Thank you for your response. I am following that documentation, but I think the issue I’m having is that I’m working in a Windows environment. The “make pre-run” command was failing, and I tried working around that. Now, I’m working on getting the “make pre-run” command to work properly, but I’m getting an error of:

make i info Invoking pre-run target
(node:420) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): undefined (node:420) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a
non-zero exit code. make × ERR not found: make-|

Any ideas on what could be causing that?

Hi @jborne536,

Thanks for your feedback,

We don’t officially support Windows but here’s the unofficial deployment guide… Let me know if this helps?

Hi @lindy65,

Thanks for the documentation. Our Mattermost service is deployed already on an Ubuntu server and is working fine. I am having issues with building the Android Application on a Windows machine.

Hi @jborne536,

Apologies for the misunderstanding,

Perhaps you’d like to join our team server and then join the ~native-mobile-apps channel where you can chat directly with the engineers?

Alternatively, I’ll ask them to help troubleshoot your issue on Monday.