-
Notifications
You must be signed in to change notification settings - Fork 584
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding the plugin to a Vite project with AdonisJS and Inertia cause an error #2518
Comments
I created a pure Vue project with the new Nuxt/ui alpha version released today https://github.com/nuxt/ui/releases/tag/v3.0.0-alpha.8 ,and encountered the same issue there. " TypeError: The URL must be of scheme file" It doesn't belong to AdonisJS; |
On windows it will log stack trace. Reprod: https://stackblitz.com/edit/vitejs-vite-o3b1xm (and on stackblitz it has a different error, not sure if it's related) The error log: (Win10, node v20.16.0 )
|
@kamilcglr, @UnluckyNinja can u check if it works with this #2899?
|
Yes, it works for dev mode now. But when I tried to build it, it outputs a lot of type-checking errors emitted from the installed dep folder of this pr. (~260 errors, and most of them are almost identical so I picked only part of it)
The path error is indeed gone, thank you. |
@UnluckyNinja This is related to another issue: #2560. Can you remove |
Just tried and it is successfully built (using the reprod in my local environment). |
houra ! |
Environment
Version
Commit 845f85a
Reproduction
After creating a fresh AdonisJS project with the Inertia and Vue 3 starter kit
Here is the procedure followed to add NuxtUI to the project https://ui3.nuxt.dev/getting-started/installation/vue
Here I already have a problem: I can't launch the application.
There is no problem with the use of the library with a Vite et Vue project alone.
It seems to be a problem with Vite or AdonisJS, but the error is not very explicit. I tried with Node 18, 20 and 22.
Here is the Replit to reproduce
https://replit.com/@kamilcaglarcont/Adonis-x-Inertia-x-Vue-3-x-Nuxt-UI?v=1
Description
Hi, a few days weeks ago, the Nuxt UI 3 team made the component library compatible with standalone Vue projects. Thank you for your work on this library 👏 !
I'd like to use it with AdonisJS and Inertia.
AdonisJS is a TypeScript-first web framework for building web apps and API servers. It is possible to use it with Inertia to build single-page apps with VueJS.
However, I've never managed to use them together, despite several hours of debugging. I have an error that seems to be related to Vite.
Additional context
I tried with node 18, 20 and 22.
Logs
No more logs even with
DEBUG=vite:*
The text was updated successfully, but these errors were encountered: