You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Clone the git repository. Run npm install and then npm run generate. This will generate a dist/static/index.html file. (One is already generated)
What is expected?
The generated html file should have two picture elements which point to different images in both the source element and the img element. As seen in the source file at src/views/Home.vue.
In dist/static/index.html you will be able to see that the img elements have different src values which is correct. But the source elements both have the same srcset value which is incorrect.
I hate leaving comments like this but this bug is blocking me migrating a few sites over to SSR. I see there's a PR that's been open a while to address this issue, is there anything I can do to get that reviewed?
Version
3.1.0-beta.6
Edit: Still an issue as of 3.2.30
Reproduction link
https://github.com/lukewarlow/vue-server-render-bug
Steps to reproduce
Clone the git repository. Run
npm install
and thennpm run generate
. This will generate adist/static/index.html
file. (One is already generated)What is expected?
The generated html file should have two picture elements which point to different images in both the
source
element and theimg
element. As seen in the source file atsrc/views/Home.vue
.What is actually happening?
In
dist/static/index.html
you will be able to see that theimg
elements have differentsrc
values which is correct. But thesource
elements both have the samesrcset
value which is incorrect.This is #3536 reopened as the commit to fix it hasn't worked. Apologies if I'm doing something wrong in my SSR code, but I do believe this is a bug.
The text was updated successfully, but these errors were encountered: