-
Notifications
You must be signed in to change notification settings - Fork 3
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
Astro integration broken #313
Comments
I made a branch where i isolated the problem better: https://github.com/Cap-go/website/tree/debug_paraglide |
I added comment in the index file to help testing it: https://github.com/Cap-go/website/blob/debug_paraglide/src/vue-pages/index.vue |
@samuelstroschein does issue is the correct way to report? |
Yep, correct way of reporting the issue! I see all comments in linear. Will look into the reproduction after #312 which i expect to finish today |
Thanks a lot ! |
Identified problem Astro has a bug/is too slow for large JS files in dev mode. Next steps Test if dev mode can be sped up by leveraging virtual modules #273 or emitting TS instead of JS Reproduction Running astro dev with a large number of messages (>1000 * 8 locales = >8000 messages). Observations:
|
Thanks for looking at it, does |
Focus atm is #201. Ideally, I'd like to keep virtual modules out of it. I am going to try to create a reproduction of Astro's slow dev mode and file an issue for Astro. Will report later today. |
Filed the bug withastro/astro#13004. This is an Astro issue given that the Vite project works fine |
Thanks a lot ! |
It's an astro bug that is caused by having a message named |
I have a website where the translation were done manually, I found out this plugin and tried it here: https://github.com/Cap-go/website/tree/migrate_i18n
since then, Astro page doesn't load. It times out locally, without error.
I took hours to debug and if I basically removed all pages/component and let only index.
I still have the issue.
If I remove all translation and let only few, it works back.
If I remove the translation from the page it loads, if I just add the import without even using it again, infinite load.
I did use
npx paraglide-js compile --project ./project.inlang --outdir ./src/paraglide
to lint in case something was off in my file and i got no error.I'm reaching the limit of what i can do.
I also tried to use the same config in TS and astro as here: https://github.com/opral/monorepo/blob/39c013d01e6134fc5ad07818949e260fc815abba/inlang/source-code/paraglide/paraglide-astro/example/astro.config.mjs
no better.
The text was updated successfully, but these errors were encountered: