Type-graphql: build error: #319 not compatible with graphql-js v14.2.0

Created on 23 Apr 2019  路  3Comments  路  Source: MichalLytek/type-graphql

Describe the bug

319 makes use of the (private) library under graphql/jsutils by importing MaybePromise.

This has been renamed in version 14.2.0 (in #1798) to PromiseOrValue. Building a project which uses graphql >= 14.2.0 now breaks.

To Reproduce
Install [email protected] and build.

Expected behavior
...builds without failure

They state, that one shouldn't rely on things under jsutils.

Bug Community Solved

Most helpful comment

Solved by 4677f1a 馃敀

All 3 comments

That's why peer dependency was a bad idea 馃槥

It's hard to prevent that kind of regression with loose range of supported versions. I would have to create a matrix in Travis to test against all newer versions 馃槙

I will fix it ASAP and release 0.17.3 馃敟

Solved by 4677f1a 馃敀

I have this build error but thanks to @19majkel94 its solved. just updated to 0.17.3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

robertchung97 picture robertchung97  路  3Comments

reilem picture reilem  路  3Comments

MichalLytek picture MichalLytek  路  4Comments

itsgracian picture itsgracian  路  3Comments

tafelito picture tafelito  路  3Comments