By Daniel Hargreaves on Monday, 30 March 2020
Posted in Native Mobile App
Likes 0
Views 1.1K
Votes 0
I've finally gotten around to the the 1.0.3 build of the native app. When I try to do a 'expo build:os' I get he following error. I don't completely understand how all of the parts work and which camp this is in.

the Error:

Unable to resolve module `@expo/vector-icons/Fontisto` from `/Users/daniel/dev/esm-csi-103.7/node_modules/native-base/dist/src/basic/IconNB.js`: Module `@expo/vector-icons/Fontisto` does not exist in the Haste module map


I've tried fresh download of the Native App (v1.0.3) an update of Expo & Yarn. I have also followed the suggested steps by Expo Metro builder. I do understand that custom builds are not supported, however if you could point me the right direction, it would be greatly appreciated. Thanks!
Hi Daniel,

There was an issue with the latest version of Native-Base where they just recently add Fontisto icons but some dependencies does not have the latest icons module for it to work properly. As a workaround to this issue, kindly follow additional steps below before you can start the build.

1. Remove node_modules folder and yarn.lock file. (Skip this step if the folder does not contain those two folder and file)
2. Run the following command from the terminal. This will force the version of native-base to always use version 2.13.8.

yarn add native-base@2.13.8

3. Next, run the second command to add another missing module, react-native-screens.

yarn add react-native-screens@~1.0.0-alpha.23

4. Finally, run `yarn install` command to finish up the installation.
5. You can proceed with the build.

Please note that this issue has been resolved internally so you do not have to repeat these step when we are releasing version 1.0.4 soon. Please try and see how it goes.
·
Tuesday, 31 March 2020 11:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Did you follow the exact steps listed on https://stackideas.com/docs/esnative/administrators/advanced/manual-build-from-downloads ?

Also, can you check if the file .babelrc is in your downloaded zip?
·
Monday, 30 March 2020 22:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, I followed the steps in the documentation. This is my third time doing this. Both the 1.0.0. & 1.0.2 compiled with with no issues.

I do have the .babelrc in the ZIP and in my compile folder.I've attached the screenshot for verification. The front window is the ZIP, the back one is after running Yarn and Expo.
·
Tuesday, 31 March 2020 09:06
·
0 Likes
·
0 Votes
·
0 Comments
·
The steps let me do a complete build. Thank you! I look forward to the next round of improvements, the app keeps getting better.
·
Wednesday, 01 April 2020 20:51
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Daniel, glad that your issue is resolved now. The latest build, 1.0.4 will also fix this issue as well.
·
Wednesday, 01 April 2020 22:27
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post