Unable to deploy Elixir Phoenix apps with colocated hooks
jc
PROOP

6 months ago

This is with the latest version of LiveVIew.

≈ tailwindcss v4.1.7

/*! 🌼 daisyUI 5.0.35 */
Done in 92ms
✘ [ERROR] Could not resolve "phoenix-colocated/railpack"

    js/app.js:25:38:
      25import {hooks as colocatedHooks} from "phoenix-colocated/railpack"
         ╵                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  You can mark the path "phoenix-colocated/railpack" as external to exclude it from the bundle, which will remove this error and leave the unresolved path in the bundle.

1 error
** (Mix) `mix esbuild railpack --minify` exited with 1

I've actually created a PR to fix this, so just looking to get some attention on it: https://github.com/railwayapp/railpack/pull/231.

4 Replies

Railway
BOT

6 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


6 months ago

Thanks for the contribution! Merged and released tada emoji


jc
PROOP

6 months ago

Thank you! bowing_man emoji


jc
PROOP

6 months ago

Just re-deployed my app and it worked!


Loading...