Home Forums Chart Support Import issue: Module ‘”angular-charts”‘ has no exported member ‘CanvasJS’ Reply To: Import issue: Module ‘”angular-charts”‘ has no exported member ‘CanvasJS’

#45405

@sujeet,

You are getting this warning because angular-charts package uses CommonJS/AMD modules. You can suppress the warning by adding it to allowedCommonJsDependencies under build options in your angular.json file, as shown below:

"build": {
    "options": {
        "allowedCommonJsDependencies": [
            "@canvasjs/angular-charts"
        ],
        ...
    },
    ...
}

Please refer to this angular documentation for more information.


Vishwas R
Team CanvasJS