-
Notifications
You must be signed in to change notification settings - Fork 14
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 ReferenceError: remaining is not defined #10
Comments
oof, this error is coming from a pre-compiled dependency. I've added a fix to the dev branch, can you test this by running:
If that works, I'll merge it into main. thanks! |
@amandaghassaei Hello there, thank you for the amazing library. I encountered the same error and after running
|
@symetryn ok I fixed curPixel in the dev branch, but I'd imagine there are other issues.
This is not a great solution overall, I know, but until I can find time to rip out and redo some of the CCapture internals, it will have to do. thanks! |
ok I took a look at https://github.com/jnordberg/gif.js/blob/92d27a02841339e202c75150dcf6fe5f4fa42ec5/src/LZWEncoder.js and realized that |
@amandaghassaei Thank you for your work. |
@symetryn sounds good, thanks for looking into that. @CreativeTransmissions does the current dev branch fix the svelte issue? or do you have a project that I can take a look at to resolve this? thanks! |
Sorry, @amandaghassaei , do you have merge this last 4 commits into main branch? Because in the main branch I have the same issue; |
@Paolino95 I don't think I ever did because I was waiting to hear back if the changes I made had any effect. Can you import the dev branch and test it?
thanks |
I had the same problem and the dev branch fixed it for me |
Hi there, this error occurs on load.
Installed using npm, using with a svelte project.
Fix should be just a case of defining the variable "remaining" before use.
Uncaught ReferenceError: remaining is not defined
at LZWEncoder.encode (canvas-capture.js:3402:14556)
at GIFEncoder.writePixels (canvas-capture.js:3402:12864)
at GIFEncoder.addFrame (canvas-capture.js:3402:7599)
at renderFrame (canvas-capture.js:3402:28769)
at self.onmessage (canvas-capture.js:3402:29314)
The text was updated successfully, but these errors were encountered: