Unplanned
Last Updated: 09 Apr 2026 15:57 by Hallmaster
Hallmaster
Created on: 09 Apr 2026 15:57
Category: Chart
Type: Bug Report
0
When template is used in Chart label in Webpack an error is thrown

webpack_chart_test.zip

When a non functional template is used for the labels in the Chart in webpack project, an error is thrown.

  1. Run the attached sample and observe the behavior.
    npm install
    npm start

The following error is displayed: labelTemplate is not a function TypeError: labelTemplate is not a function

If the template is removed or replaced with funcitonal template, the Chart displayes as expected

Workaround:

resolve: {
        mainFields: ['es2015', 'es', 'module', 'main', 'browser']
    }
0 comments