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

Fix dynamic child slot overriding #35

Open
TimDirks opened this issue Jan 27, 2022 · 0 comments
Open

Fix dynamic child slot overriding #35

TimDirks opened this issue Jan 27, 2022 · 0 comments

Comments

@TimDirks
Copy link
Contributor

In the Dropdown.vue component we try to dynamically override the child's slots to pass them on to the parent. This works fine when served locally but when trying to make a build, rollup will give errors stating Type 'number' is not assignable to type 'Slot' for the Dropdown.vue component.

Same story for the FormDropdown.vue component. However, for that component rollup gives the error Type 'Function' is not assignable to type 'Slot'.

The issue is overriding the child's slots. Dynamically creating NEW slots in a component is fine for rollup.

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