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 building when <canvas /> is being used #123

Open
ca-miked opened this issue May 8, 2019 · 6 comments
Open

Error when building when <canvas /> is being used #123

ca-miked opened this issue May 8, 2019 · 6 comments

Comments

@ca-miked
Copy link

ca-miked commented May 8, 2019

Hi,

I'm getting a canvas element error message when trying to build a project that is using a <canvas /> tag. Per the error message, I installed the canvas npm package but this did not resolve the error.

Error: Not implemented: HTMLCanvasElement.prototype.getContext (without installing the canvas npm package)

Any ideas/suggestions on a fix or workaround?

Thanks

@ca-miked
Copy link
Author

ca-miked commented May 9, 2019

Here's the more detailed stack trace

🕷 Starting crawling http://localhost:52417/
Error: Not implemented: HTMLCanvasElement.prototype.getContext (without installing the canvas npm package)
at module.exports (/Users/.../create-react-app-router/node_modules/jsdom/lib/jsdom/browser/not-implemented.js:9:17)
at HTMLCanvasElementImpl.getContext (/Users/.../create-react-app-router/node_modules/jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js:42:5)
at HTMLCanvasElement.getContext (/Users/.../create-react-app-router/node_modules/jsdom/lib/jsdom/living/generated/HTMLCanvasElement.js:30:56)

@ca-miked
Copy link
Author

Bump...

@Pardeep94
Copy link

@ca-miked I am facing same issue, do you find any solution for same ?

@hamzox
Copy link

hamzox commented Nov 10, 2020

Facing the same issue, any luck here? :'(

@Mickaz89
Copy link

same issue

@aayush27
Copy link

Same issue

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

5 participants