New to LiveVue? Start with Quickstart for a working example, then check Basic usage for common patterns.
Component issues
Component not rendering
Symptoms:- Empty div where component should be
- No errors in console
- Component works in isolation
v-socket attribute
Component renders but doesn’t update
Symptoms:- Component shows initial state
- Props don’t update when server state changes
- No reactivity
LiveVue.Encoder protocol issues
Symptoms:Protocol.UndefinedErrorwhen passing structs as props- Component doesn’t render with custom struct props
- Error mentions “LiveVue.Encoder protocol must always be explicitly implemented”
- Passing structs without implementing the encoder protocol
- Nested structs where some don’t have the protocol implemented
- Third-party library structs that need protocol derivation
TypeScript errors
Common error:Cannot find module 'live_vue'
Property 'xxx' does not exist on type
Event handling issues
Events not firing
Symptoms:- Clicking buttons does nothing
- No events reach LiveView
- Console shows no errors
Events fire but handler not called
Check handler function exists:Build and development issues
Vite server not starting
Error:EADDRINUSE: address already in use
Module not found
Build failures
TypeScript compilation errors:Hot reload not working
1. Check Vite configuration:- Vue files: Hot Module Replacement works seamlessly - changes to
.vuefiles are reflected instantly without page refresh - Elixir files: Changes to
.exand.heexfiles trigger a LiveView re-render via Phoenix’s code reloading, not Vite HMR. This still provides fast feedback but works through LiveView’s WebSocket connection rather than Vite’s HMR
SSR issues
SSR not working
Check SSR configuration:SSR errors in production
Check NodeJS supervisor:Performance issues
Slow initial load
1. Enable lazy loading:Memory leaks
Clean up event listeners:Debugging techniques
Enable debug mode
Component inspection
1. Use Vue DevTools browser extension 2. Add debug logging:Network debugging
1. Monitor WebSocket traffic in browser DevTools 2. Log LiveView events:Common error messages
Cannot read property 'mount' of undefined
Cause: Component resolution failed
Solution: Check component name and file path
ReferenceError: process is not defined
Cause: Node.js globals in browser code
Solution: Add to Vite config:
Module "live_vue" has been externalized
Cause: SSR configuration issue
Solution: Check Vite SSR config:
Getting help
Before asking for help
- Check browser console for errors
- Verify all configuration steps (see Configuration)
- Test with minimal reproduction case
- Create a fresh project with Igniter to verify the issue isn’t in your configuration
Where to get help
- GitHub Issues: For bugs and feature requests
- GitHub Discussions: For questions and community help
- Elixir Forum: For general Phoenix/Elixir questions
- Vue.js Discord: For Vue-specific questions
Creating bug reports
Include:- LiveVue version
- Phoenix/LiveView versions
- Node.js version
- Minimal reproduction case
- Error messages and stack traces
- Browser and OS information
Next steps
- Live Examples - Working examples to compare against
- FAQ for conceptual questions
- Architecture to understand how things work
- Configuration for advanced setup options
- GitHub Issues to report bugs