Nuxt UI Pro + Inertia js Issues

Has anyone had issues where it is still asking for vue-router with nuxt ui pro when used with inertia? Adding the inertia: true to the config stops the issue, but then things like login break
3 Replies
kapa.ai
kapa.ai4d ago
Hi @OhNoPlata. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the knowledge sources, when using Nuxt UI Pro (or Nuxt UI) with Inertia.js in a Vue project, you should set the inertia: true option in your vite.config.ts when initializing the Nuxt UI Pro Vite plugin. This tells Nuxt UI Pro to use Inertia's InertiaLink component instead of vue-router's RouterLink, and should prevent errors about missing vue-router when you are using Inertia.js exclusively:
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import uiPro from '@nuxt/ui-pro/vite'

export default defineConfig({
plugins: [
vue(),
uiPro({
inertia: true
})
]
})
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import uiPro from '@nuxt/ui-pro/vite'

export default defineConfig({
plugins: [
vue(),
uiPro({
inertia: true
})
]
})
When using this option, vue-router is not required as Inertia.js provides its own routing system. The components that would normally use RouterLink will automatically use Inertia's InertiaLink component instead.
Nuxt UI Pro + Inertia option However, the knowledge sources do not provide any information about issues with login or authentication flows breaking when inertia: true is set. There is no mention of specific incompatibilities or workarounds for login-related issues in the official documentation. If you are experiencing problems with login after enabling the Inertia integration, the knowledge sources do not contain enough information to diagnose or resolve this particular issue. If you need further help, you may want to check community forums or GitHub issues for Nuxt UI Pro and Inertia.js, as the official documentation does not address this scenario. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai4d ago
<@365967956401979394> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
OhNoPlata
OhNoPlataOP3d ago
Fixed in upcoming patch

Did you find this page helpful?