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 support #11

Open
darkcharmander opened this issue Oct 1, 2020 · 3 comments
Open

Vue support #11

darkcharmander opened this issue Oct 1, 2020 · 3 comments

Comments

@darkcharmander
Copy link

I am using Vue for my website, and I cannot get this polyfill to work.

When using the require/register method in the Readme, Edge will complain with the following error (On localhost):

An SSL certificate error occurred when fetching the script.
Which is strange, because the website works fine. The certificate is self-signed, but it is accepted.

When directly importing the files like this:

import 'avif.js/avif.js';
import 'avif.js/avif-sw.js';

Nothing happens. Safari on iOS doesn't seem to do anything in the above scenarios. I cannot debug on desktop Safari, because I haven no more mac OS devices.

Not that it's of much value, but Firefox and Chrome both don't work. On Firefox it's because of the ServiceWorker being unsupported, I believe that this is a known issue.

Does anyone know how to get this working in Vue? I would love AVIF support in browsers which do not support it!

@n0099
Copy link

n0099 commented Nov 13, 2022

A detailed example can be found here: #7 (comment)
cc @langyo

@langyo
Copy link

langyo commented Nov 14, 2022

I believe that's not related to Vue. Check your translater and packager first(eg. Webpack, Babel).

@darkcharmander
Copy link
Author

Thanks for your help, but this issue is no longer relevant for me. Moderators may close it.

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

3 participants