-
Notifications
You must be signed in to change notification settings - Fork 5
Requiring apollo-link-http-common enforces dom to the tsconfig libs #41
Comments
I think you are right, this was to support the createServerHttpLink for supporting graphql uploads. I was planning on splitting that off to a separate repo at some point. How urgent is this for you? Originally, I thought next major version would be with graphql v15, but was convinced to add backwards compatible support, so no major version bump was required. |
@darkbasic Not sure if it helps, but I removed explicit inclusion of dom in v8.6.1, can you let me know? Otherwise can you set up a reproducing repository? |
@yaacovCR unfortunately it doesn't help:
Not really, I can easily work it around adding |
I guess I am just confused (as usual) why do you as package user need to add dom, but in package itself, all functionality and tests compile with tsc without dom specified? |
I am going to close this for now as I can't reproduce. I like to keep the issues section super responsive in terms of bugs. Feel free to reopen if you can share a reproduction. |
Reproduced! The requirement to include dom for the library was hidden by outdated inclusion of @types/supertest in package.json. |
My fix will be as above to outsource the link as possible. |
@types/supertest was also hiding need for explicit inclusion of dom within typescript libs to avoid apollo-link-http-common related errors on node, see #41 and apollographql/apollo-link#544
Way forward on this is via merging of jaydenseric/apollo-upload-client#179 See 2d7482f |
@types/supertest was also hiding need for explicit inclusion of dom within typescript libs to avoid apollo-link-http-common related errors on node, see #41 and apollographql/apollo-link#544
@types/supertest was also hiding need for explicit inclusion of dom within typescript libs to avoid apollo-link-http-common related errors on node, see #41 and apollographql/apollo-link#544
@types/supertest was also hiding need for explicit inclusion of dom within typescript libs to avoid apollo-link-http-common related errors on node, see #41 and apollographql/apollo-link#544
While graphql-tools doesn't explicitely require
apollo-link-http-common
, this fork does.The downside of this is that you won't be able to compile your application anymore unless you add
dom
to your tsconfiglibs
: apollographql/apollo-link#544Why would I need to add
dom
to all my node.js applications?The text was updated successfully, but these errors were encountered: