应用程序编译
应用程序无法编译
生成新的应用程序,以迫使Highcharts 7.1.0(没有实时链接)以生产模式进行构建。
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'.
高图7.1.0
7.0.3构建良好。
我还遇到了其他人,在堆栈溢出时这里的构建问题完全相同。
预期行为
应用程序编译
实际行为
应用程序无法编译
现场演示以及重现步骤
生成新的应用程序,以迫使Highcharts 7.1.0(没有实时链接)以生产模式进行构建。
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'.
产品版本
高图7.1.0
7.0.3构建良好。
在7.0.3的highchart-angle中运行良好
此处存在相同问题-涉及相同版本。 7.1.0 =不好。 7.0.3 =良好。
在项目中包括附加的修补程序声明。
import HighchartsMoreModule from 'highcharts/highcharts-more';
import NetworkgraphModule from 'highcharts/modules/networkgraph';
import OrganizationModule from 'highcharts/modules/organization';
何时发布此修复程序的任何消息?
解决方法对我而言无济于事:
没有解决方法:
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'.
解决方法:
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'.
结合使用[email protected]和[email protected]。
角度CLI的初始构建在ng服务期间解决了该问题后触发重新编译,但是ng构建当然不...
何时发布此修复程序的任何消息?
正如我们所说的,它正在上传...今天将在npm上。
我在highcharts 7.1.0和@ types / highcharts 5.0.38中有相同的错误。 更新到highcharts 7.1.1之后,错误消失了。 谢谢@TorsteinHonsi。
我也有同样的错误。 有了一些错误和错误,现在已修复。
来自下面给出的package.json的highchart依赖项
“ angular-highcharts”:“ 7.2.0”,
“ highcharts”:“ ^ 7.0.3”,
最有用的评论
此处存在相同问题-涉及相同版本。 7.1.0 =不好。 7.0.3 =良好。