Highcharts: 7.1.0 λΉŒλ“œ 였λ₯˜

에 λ§Œλ“  2019λ…„ 04μ›” 01일  Β·  8μ½”λ©˜νŠΈ  Β·  좜처: highcharts/highcharts

μ˜ˆμƒλ˜λŠ” 행동

μ• ν”Œλ¦¬μΌ€μ΄μ…˜ 컴파일

μ‹€μ œ 행동

μ‘μš© ν”„λ‘œκ·Έλž¨μ΄ μ»΄νŒŒμΌλ˜μ§€ μ•ŠμŒ

μž¬ν˜„ λ‹¨κ³„κ°€μžˆλŠ” 라이브 데λͺ¨

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은 잘 λΉŒλ“œλ©λ‹ˆλ‹€.

High TypeScript Has workaround Bug

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

여기에 λ™μΌν•œ 문제-λ™μΌν•œ 버전이 ν¬ν•¨λ©λ‹ˆλ‹€. 7.1.0 = λ‚˜μ¨. 7.0.3 = μ’‹μŒ.

λͺ¨λ“  8 λŒ“κΈ€

λ‚˜λŠ” λ˜ν•œ μŠ€νƒ μ˜€λ²„ν”Œλ‘œμ—μ„œ λ˜‘κ°™μ€ λΉŒλ“œ 문제λ₯Ό 가진 λ‹€λ₯Έ μ‚¬λžŒμ„ λ§Œλ‚¬μŠ΅λ‹ˆλ‹€.

μ˜ˆμƒλ˜λŠ” 행동

μ• ν”Œλ¦¬μΌ€μ΄μ…˜ 컴파일

μ‹€μ œ 행동

μ‘μš© ν”„λ‘œκ·Έλž¨μ΄ μ»΄νŒŒμΌλ˜μ§€ μ•ŠμŒ

μž¬ν˜„ λ‹¨κ³„κ°€μžˆλŠ” 라이브 데λͺ¨

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

HC71Hotfix.d.ts.zip

이 μˆ˜μ • 사항이 μΆœμ‹œ 될 λ•Œ μ†Œμ‹μ΄ μžˆμŠ΅λ‹ˆκΉŒ?

제 κ²½μš°μ—λŠ” ν•΄κ²° 방법이 λ„μ›€μ΄λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

ν•΄κ²° 방법없이 :

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",

이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰