Highcharts: 7.1.0 Build Errors

Created on 1 Apr 2019  ·  8Comments  ·  Source: highcharts/highcharts

Expected behaviour

Application Compiles

Actual behaviour

Application Doesn't Compile

Live demo with steps to reproduce

Build new application forcing Highcharts 7.1.0 (don't have a live link) to build in production mode.

Step 10/15 : RUN ng build -c $env
 ---> Running in 4d2c35869724

Date: 2019-04-01T18:52:05.492Z
Hash: e2f9d13207ff3a740b4a
Time: 24979ms
chunk {main} main.df7d516da5b815bde751.js (main) 563 bytes [initial] [rendered]
chunk {polyfills} polyfills.aa616c185dbdafc86f55.js (polyfills) 613 bytes [initial] [rendered]
chunk {runtime} runtime.618bcded6741c4c27fdf.js (runtime) 6.04 kB [entry] [rendered]
chunk {scripts} scripts.3482e92cd19a7658a278.js (scripts) 120 kB [entry] [rendered]
chunk {styles} styles.99f07f9c34b4593ac27a.css (styles) 488 kB [initial] [rendered]

ERROR in node_modules/highcharts/highcharts.d.ts(128972,17): error TS2304: Cannot find name 'PlotNetworkDataLabelsFormatterCallbackFunction'.
node_modules/highcharts/highcharts.d.ts(128982,21): error TS2304: Cannot find name 'PlotNetworkDataLabelsFormatterCallbackFunction'.
node_modules/highcharts/highcharts.d.ts(128987,19): error TS2304: Cannot find name 'PlotNetworkDataLabelsTextPath'.
node_modules/highcharts/highcharts.d.ts(128992,15): error TS2304: Cannot find name 'PlotNetworkDataLabelsTextPath'.
node_modules/highcharts/highcharts.d.ts(136653,17): error TS2304: Cannot find name 'PlotPackedBubbleDataLabelsFormatterCallbackFunction'.
node_modules/highcharts/highcharts.d.ts(136658,15): error TS2304: Cannot find name 'PlotPackedBubbleDataLabelsTextPath'.
node_modules/highcharts/highcharts.d.ts(237720,14): error TS2304: Cannot find name 'SeriesOrganizationNodesLayoutValues'.

Product version


Highcharts 7.1.0
7.0.3 builds just fine.

High TypeScript Has workaround Bug

Most helpful comment

Same issue here - same versions involved. 7.1.0 = bad. 7.0.3 = good.

All 8 comments

I also ran across someone else having the exact same build issue here on stack overflow.

Expected behaviour

Application Compiles

Actual behaviour

Application Doesn't Compile

Live demo with steps to reproduce

Build new application forcing Highcharts 7.1.0 (don't have a live link) to build in production mode.

Step 10/15 : RUN ng build -c $env
 ---> Running in 4d2c35869724

Date: 2019-04-01T18:52:05.492Z
Hash: e2f9d13207ff3a740b4a
Time: 24979ms
chunk {main} main.df7d516da5b815bde751.js (main) 563 bytes [initial] [rendered]
chunk {polyfills} polyfills.aa616c185dbdafc86f55.js (polyfills) 613 bytes [initial] [rendered]
chunk {runtime} runtime.618bcded6741c4c27fdf.js (runtime) 6.04 kB [entry] [rendered]
chunk {scripts} scripts.3482e92cd19a7658a278.js (scripts) 120 kB [entry] [rendered]
chunk {styles} styles.99f07f9c34b4593ac27a.css (styles) 488 kB [initial] [rendered]
�[91m
ERROR in node_modules/highcharts/highcharts.d.ts(128972,17): error TS2304: Cannot find name 'PlotNetworkDataLabelsFormatterCallbackFunction'.
node_modules/highcharts/highcharts.d.ts(128982,21): error TS2304: Cannot find name 'PlotNetworkDataLabelsFormatterCallbackFunction'.
node_modules/highcharts/highcharts.d.ts(128987,19): error TS2304: Cannot find name 'PlotNetworkDataLabelsTextPath'.
node_modules/highcharts/highcharts.d.ts(128992,15): error TS2304: Cannot find name 'PlotNetworkDataLabelsTextPath'.
node_modules/highcharts/highcharts.d.ts(136653,17): error TS2304: Cannot find name 'PlotPackedBubbleDataLabelsFormatterCallbackFunction'.
node_modules/highcharts/highcharts.d.ts(136658,15): error TS2304: Cannot find name 'PlotPackedBubbleDataLabelsTextPath'.
node_modules/highcharts/highcharts.d.ts(237720,14): error TS2304: Cannot find name 'SeriesOrganizationNodesLayoutValues'.

Product version

Highcharts 7.1.0
7.0.3 builds just fine.

Working well in highchart-angular with 7.0.3

Same issue here - same versions involved. 7.1.0 = bad. 7.0.3 = good.

Temporary Workaround

Include the attached hotfix declaration in your project.

import HighchartsMoreModule from 'highcharts/highcharts-more';
import NetworkgraphModule from 'highcharts/modules/networkgraph';
import OrganizationModule from 'highcharts/modules/organization';

HC71Hotfix.d.ts.zip

Any news when this fix is being shipped?

The workaround does not help in my case:

Without workaround:

ERROR in node_modules/highcharts/highcharts.d.ts(128972,17): error TS2304: Cannot find name 'PlotNetworkDataLabelsFormatterCallbackFunction'.
node_modules/highcharts/highcharts.d.ts(128982,21): error TS2304: Cannot find name 'PlotNetworkDataLabelsFormatterCallbackFunction'.
node_modules/highcharts/highcharts.d.ts(128987,19): error TS2304: Cannot find name 'PlotNetworkDataLabelsTextPath'.
node_modules/highcharts/highcharts.d.ts(128992,15): error TS2304: Cannot find name 'PlotNetworkDataLabelsTextPath'.
node_modules/highcharts/highcharts.d.ts(136653,17): error TS2304: Cannot find name 'PlotPackedBubbleDataLabelsFormatterCallbackFunction'.
node_modules/highcharts/highcharts.d.ts(136658,15): error TS2304: Cannot find name 'PlotPackedBubbleDataLabelsTextPath'.
node_modules/highcharts/highcharts.d.ts(237720,14): error TS2304: Cannot find name 'SeriesOrganizationNodesLayoutValues'.
node_modules/highcharts/highcharts.src.d.ts(128972,17): error TS2304: Cannot find name 'PlotNetworkDataLabelsFormatterCallbackFunction'.
node_modules/highcharts/highcharts.src.d.ts(128982,21): error TS2304: Cannot find name 'PlotNetworkDataLabelsFormatterCallbackFunction'.
node_modules/highcharts/highcharts.src.d.ts(128987,19): error TS2304: Cannot find name 'PlotNetworkDataLabelsTextPath'.
node_modules/highcharts/highcharts.src.d.ts(128992,15): error TS2304: Cannot find name 'PlotNetworkDataLabelsTextPath'.
node_modules/highcharts/highcharts.src.d.ts(136653,17): error TS2304: Cannot find name 'PlotPackedBubbleDataLabelsFormatterCallbackFunction'.
node_modules/highcharts/highcharts.src.d.ts(136658,15): error TS2304: Cannot find name 'PlotPackedBubbleDataLabelsTextPath'.
node_modules/highcharts/highcharts.src.d.ts(237720,14): error TS2304: Cannot find name 'SeriesOrganizationNodesLayoutValues'.

With workaround:

ERROR in node_modules/highcharts/highcharts.src.d.ts(128972,17): error TS2304: Cannot find name 'PlotNetworkDataLabelsFormatterCallbackFunction'.
node_modules/highcharts/highcharts.src.d.ts(128982,21): error TS2304: Cannot find name 'PlotNetworkDataLabelsFormatterCallbackFunction'.
node_modules/highcharts/highcharts.src.d.ts(128987,19): error TS2304: Cannot find name 'PlotNetworkDataLabelsTextPath'.
node_modules/highcharts/highcharts.src.d.ts(128992,15): error TS2304: Cannot find name 'PlotNetworkDataLabelsTextPath'.
node_modules/highcharts/highcharts.src.d.ts(136653,17): error TS2304: Cannot find name 'PlotPackedBubbleDataLabelsFormatterCallbackFunction'.
node_modules/highcharts/highcharts.src.d.ts(136658,15): error TS2304: Cannot find name 'PlotPackedBubbleDataLabelsTextPath'.
node_modules/highcharts/highcharts.src.d.ts(237720,14): error TS2304: Cannot find name 'SeriesOrganizationNodesLayoutValues'.

Using [email protected] together with [email protected].

Triggering a recompilation after angular CLIs initial build solves it during ng serve, but of course not for ng build...

Any news when this fix is being shipped?

It's uploading as we speak... Will be on npm today.

I had same error in highcharts 7.1.0 and @types/highcharts 5.0.38. after updating to highcharts 7.1.1, the bugs disappeared. thank you @TorsteinHonsi.

I also had same error. With some trail and error it got fixed now.

highchart dependencies from package.json given below
"angular-highcharts": "7.2.0",
"highcharts": "^7.0.3",

Was this page helpful?
0 / 5 - 0 ratings