Hi to everyone. I’m struggling with following:
EAS Build fails at the “Run fastlane” step with message:
Metro encountered an error:
Unable to resolve module ./assets/fonts/Poppins-Thin.ttf from /Users/expo/workingdir/build/App.js:
None of these files exist:
* Poppins-Thin.ttf
* assets/fonts/Poppins-Thin.ttf/index(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json)
11 | function App() {
12 | const [loaded] = useFonts({
> 13 | PoppinsThin: require('./assets/fonts/Poppins-Thin.ttf'),
| ^
14 | PoppinsMedium: require('./assets/fonts/Poppins-Medium.ttf'),
15 | });
16 |
Learn more: https://docs.expo.dev/build-reference/troubleshooting
Those tty files are definitely exists at ./assets/fonts folder and all that font stuff works for dev build in iOS simulator or device.
But when I try to build adhoc - it fails.
The only thing I can point is that *.ttf files are added to .gitignore
So, the question is - should I add them to repo?
Thanks to everyone