-
Notifications
You must be signed in to change notification settings - Fork 120
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
NotYetImplemented error in HTMLCanvasElement #113
Comments
Could you tell me what this line contains: You are trying to use some not-yet-implemented method of the canvas API, but I can't tell exactly which one based on your stacktrace. |
Hi is this issue got fixed on using domino with angular5.0 ? I'm also having this kind of issue using domino in server.ts Error output: Error: NotYetImplemented npm ERR! A complete log of this run can be found in: |
I get it too. The problem seems to be here:
and particularly, here:
|
In my case, wrapping the canvas element and displaying it conditionally only if the platform is browser seems to be avoiding the error, at least. The template:
The typescript file:
|
Any update on this issue? |
The API isn't implemented. That seems pretty clear. It's of limited utility on a server-side DOM, although I suppose you could try to do server-side graphics rendering with it. Happen to accept patches if someone wants to tackle that task, though it's a lot of work. Are you asking for the canvas API to be implemented, or do you want the feature test to work differently or....? |
I was using domino to mock the window, but I choose a different way right now, using the node window, jsdom and jsom-canvas... |
I've just gotten this with the lottie library. It's happening right as soon as the module is initialized:
If it were in my application I would just wrap this in a conditional and only execute if inside the browser. But it seems to be too deep to reach. Anyone have any suggestions? |
This problem still exists as of today |
got same problem as @pedromcunha - can't wrap it because its not it my code! |
For me, the above solution (@rtyx) doesn't work, but if I replace this
by this,
|
Getting an error with message "NotYetImplemented" from utils.js
I get the error while using nodejs server, what this exact error means?
When I'm using "ng serve" there is not such error.
I'm using line chart from ng2-charts module.
Full Stack Trace:
Using the following:
NodeJS: 9.3.0
Angular: 5.1.2
OS: linux x64
"chart.js": "^2.7.1"
"ng2-charts": "^1.6.0"
The text was updated successfully, but these errors were encountered: