benawad/type-graphql-series

Can't import formatArgumentValidationError from type-graphql

Closed this issue ยท 5 comments

Hi,

I just wanted to tell you about this problem, I can't import formatArgumentValidationError from type-graphql,

My tslint : Module '"../../TypeGraphql/node_modules/type-graphql/dist"' has no exported member 'formatArgumentValidationError'.

And i'm using tsconfig as in this repo.

Cheers

Sorry it's a silly mistake, i have to import it as default.

I'm having the exact same issue, how did you solve it ? @sathish-spidie

I'm having the exact same issue, how did you solve it ? @sathish-spidie

Check 0.17.0 release notes. It was removed due to type compatibility issues with Apollo.

have they replaced it with something?

have they replaced it with something?

It's no longer needed to use the formatError. It does everything by default now.