-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
paraglide-js not working #12777
Comments
FYI: Same command on linux (inside a bun workspace) runs, but throws a warning: But in a basic SvelteKit project (inside a bun workspace), having installed paraglide according to its instructions, running
(same as above) while Not sure, if it's triggered by the same issue, but I thought it's worth mentioning. |
Still a problem on bun 1.1.33 and @inlang/paraglide-js 1.11.3 |
Like above, the Sveltekit + bun workflow fails for me on including paraglide, with the uninformative But for Bun, what I don’t understand is why I seemingly can’t get debug info from the crash. I can’t find any verbose flags, and e.g. ps. On Apple Silicon I can neither run the SvelteKit + Bun example with node ( |
Adding context to the filesystem calls in paraglide js:
|
I found a ~workaround (with Bun v1.1.31):
My
|
@fubits1 can you try the Paraglide JS 2.0 beta?
|
@samuelstroschein I'd like to try it out on my SvelteKit app. Could you provide a documentation to migrate into v2 with SvelteKit please ? |
I will update the SvelteKit adapter this week. Migration should be non-breaking. |
In |
@samuelstroschein Hello, have you updated the sveltekit-adapter ? |
@oskar-gmerek Have you tried yet on Sveltekit ? I cannot find paraglideAdapter when I try to import it.
|
@lesjul That file will be generated by paraglide. Just setup everything like in the |
@oskar-gmerek and I get this error: vite.config.ts |
@lesjul Remove As you can see in the error, there is complain about |
@oskar-gmerek I still get this error |
@lesjul try to remove 'bun.lock'/'bun.lockb' as well as 'node_modules' and try again. |
@lesjul did you update @inlang/paraglide-js to a v2 beta version as well? you might be running on v1. (the adapter, and paraglide js are updated independently) |
@samuelstroschein Thank you, it was the issue. |
Works for me as well with bun 1.2.2 and paraglide 2.0.0-beta.16 |
What version of Bun is running?
1.1.20+ae1948925
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64
What steps can reproduce the bug?
I've also created a repo
"@inlang/paraglide-js": "1.11.2"
What is the expected behavior?
Running with node works
bun run build
would expect for this to work in bun too
expected out:
What do you see instead?
I get the error instead:
Additional information
No response
The text was updated successfully, but these errors were encountered: