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

[Bug Report] 1.7.x progressive image require not working properly #169

Closed
AllanChain opened this issue Feb 4, 2021 · 1 comment
Closed
Assignees
Labels

Comments

@AllanChain
Copy link

Code Example

require(`@/assets/${url}?vuetify-preload`)

Expected

Upgrade from 1.6.0 without change

Actual

Problem 1: dynamic required image

Invalid prop: type check failed for prop "src". Expected String, Object, got Module 

I have to add .default for dynamic required image.

Problem 2: generated image incorrect

The src changed from data url to something like /292f0ef4743f73e3f8b2ed3f9306ea61.jpg, which looks like module.exports = "data:image/jpeg;base64,/9j/4AA, so that the browser can't display the image properly, just stuck at low-res placeholders.

@AllanChain
Copy link
Author

@KaelWD KaelWD self-assigned this Feb 5, 2021
@KaelWD KaelWD closed this as completed in bccfe6d Feb 5, 2021
VladBarabash pushed a commit to Regme-Ltd/regme-vuetify-loader that referenced this issue Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants