Can't build anymore, "No 'appflow:build' or 'build' script found in package.json."

Hi all, since yesterday can’t build any of my apps, in iOS or Android.

The error is the same, “No ‘appflow:build’ or ‘build’ script found in package.json.”

A couple of days ago, the same code and config worked perfectly.

Are proyects that come from PhoneGap and use the package.json as the migration guide:

{
“name”: “ionic-app-flow-demo”,
“version”: “1.0.0”,
“description”: “Appflow demo”,
“main”: “index.js”,
“scripts”: {
“test”: “echo “Error: no test specified” && exit 1”
},
“author”: “”,
“license”: “ISC”
}

In the log, what is new, is this lines in the beginning:

: --------------------------------
: — Step: get_appflow_config —
: --------------------------------
: Checking for appflow.config.json
: Appflow config not detected

And later when fail:

: --------------------------------
: — Step: import_certificate —
: --------------------------------
: Setting key partition list… (this can take a minute if there are a lot of keys installed)
: ---------------------------
: — Step: build_pro_app —
: ---------------------------
: Installing Dependencies
: $ npm install --quiet --no-optional
: ▸ up to date in 0.216s
: ▸ found 0 vulnerabilities
: -------------------------
: — Step: upload_logs —
: -------------------------
: ---------------------------
: — Step: shell command —
: ---------------------------
: -----------------------------
: — Step: delete_keychain —
: -----------------------------
: No ‘appflow:build’ or ‘build’ script found in package.json.

In the working build log looks like this:

: --------------------------------
: — Step: import_certificate —
: --------------------------------
: Setting key partition list… (this can take a minute if there are a lot of keys installed)
: ---------------------------
: — Step: build_pro_app —
: ---------------------------
: Installing Dependencies
: npm install --quiet --no-optional : ▸ up to date in 0.22s : ▸ found 0 vulnerabilities : Generating app manifest... : ionic deploy manifest
: ▸ [OK] Appflow Deploy manifest written to ./www/pro-manifest.json!
: ----------------------------------
: — Step: add_cordova_to_index —
: ----------------------------------
: cordova.js already present in index.html: skipping
: --------------------------------------
: — Step: cordova platform add ios —
: --------------------------------------

Is seems like something change, and now some config is missing (I don’t know if the idea is that we need to add them to the project or something is wrong with Appflow).

Any idea are appreciated, we need to build asap!

Thanks!

1 Like

Fixed by the Appflow team!

Now the build works again without any change.

Thanks!

1 Like

Hi nicolassodio,

Yes, The Appflow engineering team has deployed a fix and it is believed to resolve the issue that you are seeing.

If you are facing any further issues, I would encourage you to contact the Appflow support for further assistance.

Thanks for your patience,

1 Like