μ ν리μΌμ΄μ μ»΄νμΌ
μμ© νλ‘κ·Έλ¨μ΄ μ»΄νμΌλμ§ μμ
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-angularμμ μ μλν©λλ€.
μ¬κΈ°μ λμΌν λ¬Έμ -λμΌν λ²μ μ΄ ν¬ν¨λ©λλ€. 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 = μ’μ.