The error message suggests that the type reference App.Data.DepartmentShowData is unresolvable or an unsupported built-in utility type. To resolve this issue, you can try the following steps:
-
Make sure that the
generated.d.tsfile is correctly generated and located in the appropriate directory. -
Check if the
DepartmentShowDatatype is exported correctly in thegenerated.d.tsfile. Ensure that the namespace and type declaration match the actual structure of the data. -
Verify that the
typescript-transformerpackage is properly installed and configured. Follow the Spatie documentation to ensure that all necessary steps are completed. -
If the issue persists, you can try explicitly importing the
DepartmentShowDatatype in your component file. Add the following line at the top of your component file:import { DepartmentShowData } from 'path/to/generated.d.ts';Replace
'path/to/generated.d.ts'with the actual path to thegenerated.d.tsfile. -
Finally, use the imported
DepartmentShowDatatype in thedefinePropsfunction:const props = defineProps<DepartmentShowData>();Make sure that the imported type matches the structure defined in the
generated.d.tsfile.
If the issue still persists, it might be helpful to provide more information about your project setup and versions of the packages you are using.