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 TypeError: canvas.toBuffer is not a function #47

Open
yatobjection opened this issue Aug 26, 2020 · 2 comments
Open

ERROR TypeError: canvas.toBuffer is not a function #47

yatobjection opened this issue Aug 26, 2020 · 2 comments

Comments

@yatobjection
Copy link

Hi, i'm trying to use it on my web app. In my web browser's console, i have this message:

ERROR TypeError: canvas.toBuffer is not a function

I did install canvas with npm by following the wiki. What should i do?

ERROR TypeError: canvas.toBuffer is not a function
text2png index.js:164
exportInPng export.component.ts:132
ExportComponent_Template_button_click_63_listener export.component.html:55
Angular 10
executeListenerWithErrorHandling
wrapListenerIn_markDirtyAndPreventDefault
decoratePreventDefault
invokeTask
onInvokeTask
invokeTask
runTask
invokeTask
invokeTask
globalZoneAwareCallback

@shanjii
Copy link

shanjii commented Aug 27, 2020

Having the same issue.

@sebastianrath
Copy link

You can use output: 'dataURL' instead, see https://github.com/tkrkt/text2png/blob/master/index.js#L167

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