benawad / type-graphql-series

Typescript GraphQL Server built with TypeGraphQL
326 stars 129 forks source link

Can't import formatArgumentValidationError from type-graphql #17

Closed sathish-spidie closed 5 years ago

sathish-spidie commented 5 years ago

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

sathish-spidie commented 5 years ago

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

Elbarae1921 commented 4 years ago

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

slinden2 commented 4 years ago

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.

sifat0666 commented 3 years ago

have they replaced it with something?

TomixUG commented 2 years ago

have they replaced it with something?

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