-
-
Notifications
You must be signed in to change notification settings - Fork 778
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
__unocss_ready/1639148123556 are not found. #254
Comments
How to resolve? |
I think the problem is that https://github.com/antfu/unocss/blob/main/packages/vite/src/modes/global/dev.ts#L126 should make a request to vite dev server, but instead its going to the main app server |
这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
This happens only if the dev server ( |
When using ViteRuby's, the dev server listens under |
@buhrmi The unocss middleware should take the Vite |
I'll fix it: we need to add the |
Thank you @userquin. Do I only need to update this version? Do I need to modify or add some configurations? |
@chuoke just update , maybe you need to uninstall and install again the dependencies... |
@userquin It seems still not working, But it's closer than it was. And I found this code:
I wonder, can change it directly to like this:
The vite_host is resolved from vite config like the base. This can be perfect with my problem. |
@chuoke are you using |
@chuoke Upps, you're connecting 2 servers, sorry man, maybe we can include some resolver for the base url, I'll take a look... |
Yes, I use them.
This is the server part of the runtime configuration that I printed out because part of the configuration is dynamic. |
With previous configuration the inspector should work at If you have another server in front of previous one, you should proxy all request from |
Sorry again, can you explain a bit your configuration? EDIT: the app on each server and what's running on each server |
I run Vite with Laravel using Inertial Vue3 and Laravel-vite, which did a little bit of processing. And Vite and Laravel running on a different server. I use a domain for the Laravel app, such as http://my-app.test, which is in the foreground. The Laravel app is responsible for data processing and by Inertial to tell Vue which component should be rendered. So Vite is like a backroom supporter. |
@chuoke can you provide a minimal repro (gh or starblizt) so I can check it? |
Can you use PHP? I have a reproduction: https://github.com/chuoke/laravel-with-inertail-and-vite-error-reproduction , |
🎉 Now, It works. Thank you. BTW, it released in v0.24.0. |
这是来自QQ邮箱的假期自动回复邮件。您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
I use Unocss with Inertiajs and Vite in Laravel. They are running on two different hosts. And I got errors as follows:
This is the domain name of the master site (Laravel with Inertia), but Vite is on
http://localhost:3000
.And I found some code in Unocss
I guess that's why it's wrong. Didn't find a way to customize it. Any help?
Btw, That doesn't seem to affect Unocss's work.
The text was updated successfully, but these errors were encountered: