To add LiveVue to an existing Phoenix 1.8+ project:
mix igniter.install live_vue
This will automatically configure your project with all necessary LiveVue setup.
Important limitations:
Phoenix 1.8+ required: The Igniter installer depends on phoenix_vite and modern Phoenix features only available in Phoenix 1.8+
Pre-Igniter LiveVue upgrade not supported: If you have an existing LiveVue installation from before the Igniter installer was introduced, upgrading via mix igniter.install live_vue is not supported due to significant changes in the installation process. However, you should be able to bump the version of LiveVue in your mix.exs file and everything should still work.
LiveVue itself works with Phoenix 1.7: While the automated installer requires Phoenix 1.8+, the LiveVue library itself is compatible with Phoenix 1.7 if installed manually
Outdated manual instructionsManual installation instructions are currently outdated and don’t work with current versions of dependencies (Tailwind, Phoenix, etc.).We strongly recommend using the Igniter installation above.
The manual installation process involves many complex steps including:
Configuring Vite and Vue dependencies
Setting up TypeScript and PostCSS
Updating Phoenix configuration files
Configuring Tailwind for Vue files
Setting up SSR for production
And many more manual steps…
For the current version, please use the Igniter installation method.