-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Server builds fail with Vue plugin #5063
Comments
That's pretty odd isn't it. This doesn't happen with regular SSG builds? My first instinct was that the Vue plugin was including these in the build, but perhaps something else is going on here. |
Yeah, thankfully the SSG builds work just fine. It's only when building with a |
Update on version numbers. The problem continues with the latest versions:
|
Looks like this is because we turn off This means that you can't do This can be workaround by moving the asset into integrations: [
vue({
template: {
transformAssetUrls: {
includeAbsolute: false,
},
},
}),
] Trying to find a solution on the Vite side at the meantime so it works better. |
Update: We discussed vitejs/vite#10550 a bit in the last Vite team meeting, but we'd need Evan's input as this is a new feature. I'm hoping to get it in the next Vite 3.2 release, which might be happening at the end of the week. |
Thank you for fixing the issue @bluwy! I've become accustomed to fixing things myself, so I'm feeling spoiled, right now. This must be what it feels like to be royalty. :) Thank you, again. |
No problem 😄 This turned out to be quite an oversight in Vite's SSR implementation and glad it was surfaced! |
What version of
astro
are you using?1.4.7
Are you using an SSR adapter? If so, which one?
Cloudflare
What package manager are you using?
npm
What operating system are you using?
Mac
Describe the Bug
Build fails when using
@astrojs/vue
together with a server plugin.Rollup tries to bundle the
src
attribute ofimg
tags for images in the public directory. The problem only occurs when doing server build with the Vue plugin. I tried two plugins:@astrojs/cloudflare
@astrojs/node
You can see a screenshot of the error in the repro repo: https://github.com/marshallswain/my-astro-site
Link to Minimal Reproducible Example
https://github.com/marshallswain/my-astro-site
Participation
The text was updated successfully, but these errors were encountered: