Fly deploy failure : Phoenix 1.7.8

I have deployed various apps on fly.io without an issue. This popped up today :

Start a new phoenix project :

mix phx.new test

Then go in the asset folder and run

npm install is-odd --save

In app.js add

console.log(isOdd(3));

Then fly launch & fly deploy.

This fails on the mix deploy.assets

✘ [ERROR] Could not resolve “is-odd”
You can mark the path “is-odd” as external to exclude it from the bundle, which will remove this error.
** (Mix) mix esbuild default --minify exited with 1

It works fine on local. I can even run mix esbuild default --minify successfully on my terminal. But mix deploy fails.

my fly command line version : fly v0.1.115

nevermind, I missed adding the apt-get npm node & the RUN npm install

1 Like

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