Highcharts: 7.1.0 Erstellungsfehler

Erstellt am 1. Apr. 2019  ·  8Kommentare  ·  Quelle: highcharts/highcharts

Erwartetes Verhalten

Anwendungskompilierungen

Tatsächliches Verhalten

Anwendung wird nicht kompiliert

Live-Demo mit Schritten zum Reproduzieren

Erstellen Sie eine neue Anwendung, die Highcharts 7.1.0 (ohne Live-Link) zwingt, im Produktionsmodus zu erstellen.

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'.

Produktversion


Highcharts 7.1.0
7.0.3 baut gut.

High TypeScript Has workaround Bug

Hilfreichster Kommentar

Gleiches Problem hier - gleiche Versionen beteiligt. 7.1.0 = schlecht. 7.0.3 = gut.

Alle 8 Kommentare

Ich bin auch auf jemanden gestoßen, der hier genau das gleiche Build-Problem beim Stapelüberlauf hatte .

Erwartetes Verhalten

Anwendungskompilierungen

Tatsächliches Verhalten

Anwendung wird nicht kompiliert

Live-Demo mit Schritten zum Reproduzieren

Erstellen Sie eine neue Anwendung, die Highcharts 7.1.0 (ohne Live-Link) zwingt, im Produktionsmodus zu erstellen.

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'.

Produktversion

Highcharts 7.1.0
7.0.3 baut gut.

Funktioniert gut im Highchart-Winkel mit 7.0.3

Gleiches Problem hier - gleiche Versionen beteiligt. 7.1.0 = schlecht. 7.0.3 = gut.

Temporäre Problemumgehung

Fügen Sie die angehängte Hotfix-Deklaration in Ihr Projekt ein.

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

HC71Hotfix.d.ts.zip

Gibt es Neuigkeiten, wenn dieses Update ausgeliefert wird?

Die Problemumgehung hilft in meinem Fall nicht:

Ohne Problemumgehung:

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'.

Mit Problemumgehung:

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'.

Verwenden von [email protected] zusammen mit [email protected].

Das Auslösen einer Neukompilierung nach dem ersten Build der eckigen CLIs löst diese während des ng-Serves, aber natürlich nicht für den ng-Build ...

Gibt es Neuigkeiten, wenn dieses Update ausgeliefert wird?

Es wird hochgeladen, während wir sprechen ... Wird heute um npm sein.

Ich hatte den gleichen Fehler in Highcharts 7.1.0 und @ types / highcharts 5.0.38 . Nach dem Update auf Highcharts 7.1.1 verschwanden die Fehler. danke @TorsteinHonsi.

Ich hatte auch den gleichen Fehler. Mit einigen Spuren und Fehlern wurde es jetzt behoben.

Highchart-Abhängigkeiten von package.json unten angegeben
"Winkel-Highcharts": "7.2.0",
"Highcharts": "^ 7.0.3",

War diese Seite hilfreich?
0 / 5 - 0 Bewertungen