Expo Init and Assest Folder Location Error

Please provide the following:

Expo CLI 3.17.11 environment info:
OS: macOS 10.15.3
Shell: 5.7.1 - /bin/zsh
Node: 13.12.0 - /usr/local/bin/node
Yarn: 1.21.1 - /usr/local/bin/yarn
npm: 6.14.4 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
Android Studio: 3.5 AI-191.8026.42.35.5791312
Xcode: 11.4/11E146 - /usr/bin/xcodebuild
expo: ~37.0.3 => 37.0.3
react: ~16.9.0 => 16.9.0
react-native: https://github.com/expo/react-native/archive/sdk-37.0.0.tar.gz => 0.61.4
expo-cli: 3.17.11

  1. Platforms(Android/iOS/web/all): all

When I initialize a project with expo init [project name], cd into [project name] and do expo start -c, expo starts normally. When I try to display the app on an iphone simulator, i get this error:

Error: ENOENT: no such file or directory, scandir ‘/Users/[user]/…/[project name]/src/assets’

I look at my folder structure of my project, which shows this…


Notice how there isn’t any src folder??? Is this an expo init error? I looked at the app.json file which showed this…

“expo”: {
“name”: “POC-Reporting”,
“slug”: “POC-Reporting”,
“platforms”: [
“version”: “1.0.0”,
“orientation”: “portrait”,
“icon”: “./assets/icon.png”,
“splash”: {
“image”: “./assets/splash.png”,
“resizeMode”: “contain”,
“backgroundColor”: “#ffffff
“updates”: {
“fallbackToCacheTimeout”: 0
“assetBundlePatterns”: [
“ios”: {
“supportsTablet”: true

I went ahead and created a src folder and moved the assets folder within the src folder. Then I started getting this error…

Error: Problem validating asset fields in app.json. See https://docs.expo.io/
• Field: icon - cannot access file at ‘./assets/icon.png’.
• Field: splash.image - cannot access file at ‘./assets/splash.png’.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.