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

combineScalarFilters produces unresolvable type #190

Open
scarrico-divergent opened this issue Sep 7, 2023 · 2 comments
Open

combineScalarFilters produces unresolvable type #190

scarrico-divergent opened this issue Sep 7, 2023 · 2 comments
Labels
awaiting-feedback bug Something isn't working

Comments

@scarrico-divergent
Copy link

scarrico-divergent commented Sep 7, 2023

when specifying combineScalarFilters config property, the generated ts definitions produce output similar to this

TS2304: Cannot find name 'FloatFilter'.
    1036 |     _count?: InstanceType<typeof IntFilter>;
    1037 |     @Field(() => FloatFilter, {nullable:true})
  > 1038 |     _avg?: InstanceType<typeof FloatFilter>;
         |                                ^^^^^^^^^^^
    1039 |     @Field(() => IntFilter, {nullable:true})
    1040 |     _sum?: InstanceType<typeof IntFilter>;
    1041 |     @Field(() => IntFilter, {nullable:true})

but FloatFilter is not defined..

seeing this issue on 18.0.2 and 18.1.1 (Prisma 4 compatible releases)

@scarrico-divergent scarrico-divergent changed the title combineScalars produces unresolvable type combineScalarFilters produces unresolvable type Sep 7, 2023
@unlight unlight added the bug Something isn't working label Sep 8, 2023
@unlight
Copy link
Owner

unlight commented Sep 16, 2023

@scarrico-divergent
Could you provide your schema or part of it to reproduce the error?

@unlight
Copy link
Owner

unlight commented Sep 16, 2023

Are you using combineScalarFilters with emitSingle?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-feedback bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants