Skip to content
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

Vue Image Embedding Fails in .vue Files with @parcel/transformer-vue@2.14.X #10124

Open
TobiasSchikora opened this issue Mar 25, 2025 · 0 comments

Comments

@TobiasSchikora
Copy link

TobiasSchikora commented Mar 25, 2025

🐛 bug report

When using @parcel/transformer-vue in versions later than 2.13.3, images referenced in .vue files are rendered as [object Object] in the HTML output. This issue does not occur when images are loaded outside Vue (e.g., directly in index.html).

Steps to Reproduce

  • Use @parcel/transformer-vue v2.14.0 or higher.
  • Reference an image asset in a .vue file (e.g., <img src="./image.png">).
  • Build the project.

Workaround

Pin dependencies to v2.13.3.

🎛 Configuration

{
  "parcel": "2.14.3",
  "@parcel/transformer-vue": "2.14.3",
  "@parcel/resolver-glob": "2.14.3"
}

🤔 Expected Behavior

Image paths are correctly resolved and rendered in the HTML.

😯 Current Behavior

[object Object] is output instead of the image path.

🔦 Context

May be related to changes in asset handling or serialization in newer versions of the Vue transformer.

@TobiasSchikora TobiasSchikora changed the title Vue Image Embedding Fails in .vue Files with @parcel/transformer-vue v2.13.4+ Vue Image Embedding Fails in .vue Files with @parcel/transformer-vue v2.14.0+ Mar 25, 2025
@TobiasSchikora TobiasSchikora changed the title Vue Image Embedding Fails in .vue Files with @parcel/transformer-vue v2.14.0+ Vue Image Embedding Fails in .vue Files with @parcel/transformer-vue@2.14.X Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant