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

<img src="./assets/logo.png"> in a Vue template doesn't seem to work. #5444

Open
mischnic opened this issue Dec 8, 2020 · 3 comments
Open

Comments

@mischnic
Copy link
Member

mischnic commented Dec 8, 2020

🐛 bug report

These should be treated as URL dependencies

💻 Code Sample

https://github.com/mischnic/element-plus-parcel2-error/blob/b593c763d91d2661b50c3bbca9a2b163753a6ba0/src/App.vue#L2

<template>
	<img class="logo" alt="Vue logo" src="./assets/logo.png">
</template>

Current behaviour

BuildError: No transformers found for src/assets/logo.png.

Context

#5325 (comment)

🌍 Your Environment

Software Version(s)
Parcel b50cf94
@mjog
Copy link

mjog commented May 10, 2021

Anyone know of a workaround for this?

@chimesness
Copy link

I found same problem on this page
Moving "assets" into "public" folder also help solved this issue.

@Rainbowlemon
Copy link

Any potential fix for this yet? I've just set up a project with Parcel 2.0.0-beta.3.1 + Vue 3.1.1 and am getting this error thrown when trying to load any image directly in the template (Error: No transformers found for ...<image>)

I guess it could be fixed by storing the images in a static folder, but I don't want to lose out on cache-busting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants