expo-cli 2.17.0 breaks my CircleCI build with "optimize assets" question

My CircleCI build for my ExpoKit ejected app started to fail today during expo publish. I found that the latest version of expo-cli, 2.17.0, is issuing a prompt of:

It seems your assets have not been optimized yet.
? Do you want to optimize assets now? (Y/n) ?

And since I am running on CircleCI, I cannot answer the question and after a 10 minute timeout the build fails.

I tried adding --non-interactive to the expo publish step in my config.yml, but then it gives me an error saying

[21:46:54] It seems your assets have not been optimized yet.
[21:46:54] Input is required, but Expo CLI is in non-interactive mode.
Required input:

Do you want to optimize assets now?
Exited with code 1

I had to change my config.yml to install expo-cli@2.16.1 to work around this.

8 Likes

I have exactly the same issue. It keeps breaking my CI:

2019-05-07T03:30:07.2367290Z [03:30:07] It seems your assets have not been optimized yet.

2019-05-07T03:30:07.2372690Z [03:30:07] Input is required, but Expo CLI is in non-interactive mode.

2019-05-07T03:30:07.2372850Z Required input:

2019-05-07T03:30:07.2372920Z > Do you want to optimize assets now?

Got the same issue, had to install the latest working version for us (2.16.1).

Hi everyone,

Sorry for the inconvenience here. Iā€™m looking into this, hopefully we will have a fix out soon!

-Charlie

Good news!

PR #583 solves this, and was just merged and published.

Latest version of Expo CLI (2.17.1) has the fix

Thanks for letting us know about this issue :smile:

3 Likes

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