Build android app faild, error:Cannot read property 'forEach' of undefined

my console info:

[18:15:27] No currently active or previous builds for
[18:15:28] Publishing to channel 'default'...
[18:15:34] Building iOS bundle
[18:15:34] Building Android bundle
[18:15:34] Analyzing assets
[18:17:08] Uploading assets
[18:17:08] No assets to upload, skipped.
[18:17:08] Processing asset bundle patterns:
[18:17:08] - E:\weiming\cwApp\assets\*
[18:17:08] Cannot read property 'forEach' of undefined[18:17:08] Set EXPO_DEBUG=true in your env to view the

app.json

{
  "expo": {
    "name": "cwApp",
    "slug": "cwApp",
    "privacy": "public",
    "sdkVersion": "31.0.0",
    "platforms": [
      "ios",
      "android"
    ],
    "version": "0.0.1",
    "orientation": "portrait",
    "icon": "./assets/icon.png",
    "primaryColor": "#cccccc",
    "packagerOpts": {
      "assetExts": [
        "ttf"
      ]
    },
    "androidStatusBarColor": "#1890ff",
    "androidStatusBar": {
      "barStyle": "light-content",
      "backgroundColor": "#1890ff"
    },
    "updates": {
      "fallbackToCacheTimeout": 0
    },
    "assetBundlePatterns": [
      "assets/*"
    ],
    "ios": {
      "bundleIdentifier": "com.Troy.toilet"
    },
    "android": {
      "package": "com.Troy.toilet"
    },
    "description": ""
  }
}

and my assets
image

thank you

Hey @eatcodecat,

What OS are you on and what shell are you running the expo-cli in?

Cheers,

Adam

Also having this issue running expo-cli@2.6.14 on Linux through circle ci

@jennyabrahamson @eatcodecat Could you try expo logout and expo login ?

That did not seem to have any effect

Stack trace with EXPO_DEBUG=true:

[00:27:11] Finished building JavaScript bundle in 90143ms.
[00:27:13] ::ffff:127.0.0.1 - - [18/Jan/2019:00:27:13 +0000] “GET /node_modules/expo/AppEntry.assets?dev=false&minify=true&hot=false&assetPlugin=%2Fhome%2Fcircleci%2Frepo%2Flearn%2FReactNativeTS%2FFluTrack%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js&platform=ios HTTP/1.1” 200 - “-” “axios/0.19.0-beta.1” Building JavaScript bundle 100%
[00:27:14] Finished building JavaScript bundle in 1132ms.
[00:27:14] ::ffff:127.0.0.1 - - [18/Jan/2019:00:27:14 +0000] “GET /node_modules/expo/AppEntry.assets?dev=false&minify=true&hot=false&assetPlugin=%2Fhome%2Fcircleci%2Frepo%2Flearn%2FReactNativeTS%2FFluTrack%2Fnode_modules%2Fexpo%2Ftools%2FhashAssetFiles.js&platform=android HTTP/1.1” 200 - “-” “axios/0.19.0-beta.1”
[00:27:14] Uploading assets
[00:27:14] No assets to upload, skipped.
[00:27:14] Processing asset bundle patterns:
[00:27:14] - /home/circleci/repo/learn/ReactNativeTS/FluTrack/src/img/UWLogo.png
[00:27:14] - /home/circleci/repo/learn/ReactNativeTS/FluTrack/src/img/6ftDiagram.png
[00:27:14] Cannot read property ‘forEach’ of undefined
[00:27:14] TypeError: Cannot read property ‘forEach’ of undefined at /xdl@52.0.13/src/Project.js:1013:26 at Generator.next (<anonymous>) at step (/home/circleci/.config/yarn/global/node_modules/xdl/build/Project.js:2211:191) at /home/circleci/.config/yarn/global/node_modules/xdl/build/Project.js:2211:361
Exited with code 1

Yes!I can login image

Hey guy.my system is windows 7 dos execute command image

Hay @jennyabrahamson.You can skip this error build app success?

also cherish

this issue solves my build app faild https://github.com/expo/expo-cli/issues/233

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