question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Breaks Server Side Rendering because of canvas

See original GitHub issue

Hello there,

LottieAnimationViewModule when imported in app.module and with platform-server breaks SSR:

  throw new Error("NotYetImplemented");
  ^

Error: NotYetImplemented
    at HTMLCanvasElement.exports.nyi 

I think it’s because it imports the bodymovin library, which uses canvas, which is not implemented in Domino. Could you fix it or add some configuration option for module, to not use canvas?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
damienwebdevcommented, Jul 2, 2018

See #26 this should resolve your issue @ftanrisevdi @marcin-j

0reactions
Ilyoskhujacommented, Sep 7, 2019

I have same issue


 throw new Error("NotYetImplemented");
  ^

Error: NotYetImplemented
    at HTMLCanvasElement.exports.nyi

how can I find which library used canvas

Read more comments on GitHub >

github_iconTop Results From Across the Web

The absurd complexity of server-side rendering - Hacker News
There are cases when server-side rendering (without SPA) is easier and faster. For example: documentation sites, blog-like sites, internet stores, ...
Read more >
Angular Universal: exclude node-only dependencies from ...
I'm trying to add a server-side node canvas ( "canvas": "^2.6.1" ) to render certain images on the server. I don't need this...
Read more >
Static Site Generation and Server-Side Rendering Using Next.js
We're going to use Next.js (a.k.a. Next), a framework for creating React applications. We chose Next because it has a clean API and...
Read more >
Server Side Rendering - Cross Platform - Apache ECharts
Server Side Rendering. Normally, Apache ECharts TM renders the chart dynamically in the browser and will re-render after user interactions.
Read more >
Allowing cross-origin use of images and canvas - HTML
Because the pixels in a canvas's bitmap can come from a variety of sources ... The first thing we need is a server...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found