-
Notifications
You must be signed in to change notification settings - Fork 14
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 Qwik + Vercel issues on deployment #221
Comments
Hey @Souvlaki42! ]The peer dependency issue with Qwik is fine, because Qwik is using vite v5 and Astro is using v6, but there aren't any breaking changes between the two majors. Can you show me what's in your package.json? |
I would also suggest running |
Also are you sure you're on the latest version? When I go to https://elemental.souvlaki.me/, I can see it spins up a service worker, which only happened on previous Qwik Astro versions. |
@thejackshelton Sorry for being late to reply.
Here is my {
"name": "element.al",
"description": "A simple interface for getting information about elements.",
"type": "module",
"version": "1.0.0",
"scripts": {
"dev": "astro dev",
"build": "astro build",
"preview": "astro preview",
"astro": "astro",
"pretty": "prettier --write ."
},
"dependencies": {
"@astrojs/tailwind": "^5.1.4",
"@astrojs/vercel": "^8.0.1",
"@builder.io/qwik": "^1.12.0",
"@qwikdev/astro": "^0.7.7",
"astro": "^5.1.3",
"tailwindcss": "^3.4.17",
"typescript": "^5.7.2"
},
"devDependencies": {
"prettier": "^3.4.2",
"prettier-plugin-astro": "^0.14.1",
"prettier-plugin-tailwindcss": "^0.6.9"
}
} I use the html element in a .astro file twice. Should I install sharp separately for it to work fine? I didn't need to do that before. |
The error before should since be fixed in the latest version of Qwik Astro, and yes if you are using Astro's image component they recommend installing sharp separately. Sharp decided to make a bunch of breaking changes is the TLDR |
@thejackshelton Still same errors. Updated everything, added sharp, changed to node lts, checked my vercel settings and still nothing changed. I even removed Edit: Even tried removing |
About two weeks ago I opened an issue explaining that I had my fair share of issues with this integration when deploying on Vercel: My previous issue. TLDR There I explained that my issue is that js files needed for interactive Qwik components don't load on the Vercel deployed site with SSR enabled. The recommendation was to upgrade both @qwikdev/astro and node js to latest, I was on holidays, it now doesn't work and the issue was marked completed. Here I am again. I was already on latest on the nodejs side and Vercel functions run on version 22 LTS by default now. Now the Vercel deployed failed with this errors:
This is my astro config:
I'm still getting:
I don't know if these have something to do with my issue, I'm just guessing.
I'm really considering switching to Cloudflare Pages since my site isn't really dynamic at this point but
I'm still trying in case somebody finds that useful in the future.
I still can't make a minimal reproducible example btw, just like the previous attempt.
Any ideas? Thanks in advance.
The text was updated successfully, but these errors were encountered: