type augmentation in monorepo with turbo-repo
Not strictly solid specifacally related but wanted to try my luck here anyway, since i'm working on this in a solid-project.
I have a monorepo setup with turbo-repo and trying to do "type augmentation" for LinkProps.
I have a ui package set up of which i want to augment some props.
The file looks like this:
packages/ui/src/_lib/types.ts
and its content:
The package json of the ui package:
And then in the final application i want to augment that type.
however that gives errors.
"TS2664: Invalid module name in augmentation, module @cgrd-modules/ui/Link/types cannot be found."
The ui package so far is "Just-In-Time".
How do i set this up correctly? Do i have to pre-compile the package and types differently?0 Replies