Skip to content

Current Volt cannot be used with released phoenix_vapor (oxc/vize range mismatch) #32

Description

@luis1112

Volt 0.17.10 cannot be installed together with the released phoenix_vapor (0.3.0), because the two pin different ranges of the shared Rust NIFs:

volt 0.17.10 phoenix_vapor 0.3.0
oxc ~> 0.17.7 ~> 0.11.0
vize ~> 0.14.0 ~> 0.10.0
Because "your app" depends on "phoenix_vapor ~> 0.3" which depends on
"volt ~> 0.10.1", "volt ~> 0.10.1" is required.
So, because "your app" depends on "volt ~> 0.17", version solving failed.

Pinning Volt back to ~> 0.10.1 to match Vapor is not an option for us either: any Volt below 0.11.1 requires reach ~> 1.6, and our project is on reach ~> 2.x.

The practical effect is that a Phoenix project cannot use a current Volt and write Vue components at the same time. Volt alone compiles .vue files, but the LiveView bridge lives in Vapor.

We landed on Volt 0.14.0 plus the inertia-inspired-foundations branch of phoenix_vapor, which resolves and works — but that means staying a minor behind and depending on a branch rather than a release.

Filed the matching issue on the Vapor side: elixir-volt/phoenix_vapor#2

Is a Volt release line intended to stay compatible with phoenix_vapor, or is the Vue-with-LiveView path expected to track Volt separately?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions