Home forums Chart Support Angular 10 update for appliaction generates a warning for canvasjs library

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #29812

    When I updated my application to angular 10, it generated the following warning for CanvasJS library usage.

    WARNING in /Users/…./src/app/…..component.ts depends on ‘@assets/canvasjs/canvasjs.min’. CommonJS or AMD dependencies can cause optimization bailouts.
    For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

    Does CanvasJS library has a ECMAScript module to be used with angular 10 applications? Any help to get rid of the warning (don’t want to turn off the warnings though) is appreciated. Thanks.

    #29825

    @mlimaye,

    Whitelisting CanvasJS as shown in this Stack Overflow thread should work fine in your case.


    Shashi Ranjan
    Team CanvasJS

    #29839

    Thanks, it worked! But I believe, it only suppresses the warning, not remove/fix the issue. I hope canvasjs can come up with ECMAScript moduled version of the library.

    #29848

    @mlimaye,

    Thanks for your suggestion. We will look into it in future versions.


    Shashi Ranjan
    Team CanvasJS

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.