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

Error when using vite: reading gif leads to error in get-pixels #37

Open
ultrafro opened this issue Apr 6, 2022 · 4 comments
Open

Error when using vite: reading gif leads to error in get-pixels #37

ultrafro opened this issue Apr 6, 2022 · 4 comments

Comments

@ultrafro
Copy link

ultrafro commented Apr 6, 2022

Receiving error while using vite with React + Typescript,
gif-frames version: ^1.0.1

seeing
image

when running:
image

The loading works fine using CRA / web-pack. Hoping for any tips or thoughts! Cool library! Thanks!

@benwiley4000
Copy link
Owner

benwiley4000 commented Apr 6, 2022 via email

@ultrafro
Copy link
Author

ultrafro commented Apr 6, 2022

thanks so much for the help! trying it out

@ultrafro
Copy link
Author

hey, was able to get this to work by installing path-browserify and changing my vite config to:

  resolve: {
    alias: [{ find: "path", replacement: "path-browserify" }]
    }

as per: https://stackoverflow.com/a/67739063

thanks again for the help and hints!

@benwiley4000
Copy link
Owner

benwiley4000 commented Oct 11, 2022 via email

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

2 participants