tui.chart icon indicating copy to clipboard operation
tui.chart copied to clipboard

타입 정의파일과 실제 컴포넌트 이름 불일치 문제

Open dungsil opened this issue 3 years ago • 4 comments

Describe the bug 타입스크립트에서 컴포넌트를 import 할 경우 오류 발생

To Reproduce

<script lang="ts">
import { barChart } from '@toast-ui/vue-chart' // <  TS52724: '"@toast-ui/vue-chart"' has no exported member named 'barChart'. Did you mean 'BarChart'?
// ...
</script>

Screenshots image

Version tui.chart : 4.4.3 @toast-ui/vue-chart : 4.4.3

Additional context

실제 코드에서는 camel case 방식으로 export를 하지만 타입은 pascal case로 정의 되어있어 오류가 발생하는 거 같습니다.

https://github.com/nhn/tui.chart/blob/6b90e0cb5f59bd1e9fe8582a3c41f7ea82c7027a/apps/vue-chart/src/index.js#L22-L41 https://github.com/nhn/tui.chart/blob/6b90e0cb5f59bd1e9fe8582a3c41f7ea82c7027a/apps/vue-chart/index.d.ts#L74-L80

dungsil avatar Jun 17 '22 13:06 dungsil

@dungsil Thank you for the issue. we'll fix it.

jwlee1108 avatar Jun 30 '22 11:06 jwlee1108

This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!

stale[bot] avatar Jul 31 '22 04:07 stale[bot]

Hello @jwlee1108, Can I know the expected date of fix?

dungsil avatar Aug 02 '22 11:08 dungsil

This issue has been automatically marked as inactive because there hasn’t been much going on it lately. It is going to be closed after 7 days. Thanks!

stale[bot] avatar Sep 21 '22 05:09 stale[bot]