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

Uncaught SyntaxError: Invalid or unexpected token #53

Open
KenEucker opened this issue Nov 15, 2023 · 1 comment
Open

Uncaught SyntaxError: Invalid or unexpected token #53

KenEucker opened this issue Nov 15, 2023 · 1 comment

Comments

@KenEucker
Copy link

When including this package in my vue3 app, I get the following error:
Uncaught SyntaxError: Invalid or unexpected token (at

Which points to this line: https://github.com/alexcorvi/heic2any/blob/3428539e643e112323a5b8a2c77c6402cb1372f6/dist/heic2any.js#L21

The workerString is too big, but here is the specific spot it is failing on:
isWindows:!(bA=\"data:application/octet-stream;base6

I think this workerString should be a dependency. Where is it's sourcecode? This one single line is 1.3MB in size...

@KenEucker
Copy link
Author

KenEucker commented Nov 15, 2023

BTW, because this line is so long it crashes nearly everything I try to open the file in. I'm wondering why it was done this way.

See visual studio code:
Screenshot 2023-11-15 at 4 52 39 AM

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