Closed aminya closed 5 months ago
I have realized the issue is that the types in @kobalte/core
depends on @kobalte/utils
, but @kobalte/utils
types are not being found by TypeScript in VsCode. Installing @kobalte/utils
as my dependency fixes the issue, but that is not ideal.
I am using pnpm
.
pnpm i --save-dev @kobalte/utils
We're working on fixing and changing our polymorphic and type system. If you'd like to follow progress or offer feedback, check out https://github.com/jer3m01/polymorphic or/and SolidJS' discord.
Using this in .npmrc
fixes the issue for me.
node-linker=hoisted
Then:
rm -rf ./node_modules/ ./packages/*/node_modules/
pnpm i
Types have been fixed in #381.
Describe the bug I am trying to use the
Dialog
components, but for many of them, TypeScript gives me an error: I cannot put children under the component. It seems the props of all these components inherit the formAsChild
, which doesn't allow children.The same issue exists for assigning class and ID to these components.
To Reproduce Steps to reproduce the behaviour:
Screenshots
Smartphone (please complete the following information):