Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - YOUR_ISSUE_TITLE_HERE_REPLACE_ME #449

Open
5 tasks done
a1113590485 opened this issue Aug 15, 2024 · 0 comments
Open
5 tasks done

[BUG] - YOUR_ISSUE_TITLE_HERE_REPLACE_ME #449

a1113590485 opened this issue Aug 15, 2024 · 0 comments

Comments

@a1113590485
Copy link

Describe the bug

<script>
	import { KButton } from '@ikun-ui/button';
	import { KButtonGroup } from '@ikun-ui/button-group';
</script>
<div class="flex items-center flex-wrap">
	<KButton type="info" cls="mx-2">info</KButton>
	<KButton type="error" cls="mx-2">error</KButton>
	<KButton type="success" cls="mx-2">success</KButton>
	<KButton type="primary" cls="mx-2">primary</KButton>
	<KButton type="warning" cls="mx-2">warning</KButton>
</div>

运行官方案例时,会直接报错

1 |  <script lang="ts">
 2 |    import type { KButtonGroupPropsInner, KButtonProps } from './types';
                    ^
 3 |    import { createEventDispatcher, getContext } from 'svelte';
 4 |    import { KIcon } from '@ikun-ui/icon';

环境使用的是sveltekit创建的js工程项目,是否是缺少了某项引入,导致的错误

Reproduction

No response

System Info

No response

Used Package Manager

npm

Validations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant