Skip to content
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

async_hooks import Vite warning #403

Closed
WarningImHack3r opened this issue Feb 22, 2025 · 5 comments · Fixed by opral/monorepo#3445
Closed

async_hooks import Vite warning #403

WarningImHack3r opened this issue Feb 22, 2025 · 5 comments · Fixed by opral/monorepo#3445

Comments

@WarningImHack3r
Copy link

There is a warning when building a project using Paraglide 2 beta with Vite:

[plugin vite:resolve] Module "async_hooks" has been externalized for browser compatibility, imported by "/path/to/src/paraglide/runtime.js". See https://vite.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.
Copy link
Member

your build might have a problem. the async hooks is only bundled if serverMiddleware is used.

can you check your client build output if serverMiddleware() can bundled into it?

Copy link
Member

i can reproduce it

@samuelstroschein
Copy link
Member

Blocked by vitejs/vite#19498

@WarningImHack3r
Copy link
Author

Thanks for investigating this!

@samuelstroschein
Copy link
Member

#415 should fix this warning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants