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
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:
When using this option,Nuxt UI Pro + Inertia option However, the knowledge sources do not provide any information about issues with login or authentication flows breaking whenvue-router
is not required as Inertia.js provides its own routing system. The components that would normally useRouterLink
will automatically use Inertia'sInertiaLink
component instead.
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:
----------------------<@365967956401979394> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
Fixed in upcoming patch