aaronwlee/oak-graphql

Getting errors with deno 1.5.2

Closed this issue · 7 comments

I have these errors using deno 1.5.2

 error: TS2464 [ERROR]: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
   public [$$asyncIterator]() {
          ~~~~~~~~~~~~~~~~~
     at https://deno.land/x/oak_graphql@0.6.2/graphql-subscriptions/pubsub-async-iterator.ts:71:10
 
 TS2464 [ERROR]: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
       [$$asyncIterator]() {
       ~~~~~~~~~~~~~~~~~
     at https://deno.land/x/oak_graphql@0.6.2/graphql-subscriptions/with-filter.ts:41:7

I am using docker and I have everything working using deno 1.4.6

Facing the same problem with:

deno 1.5.3 (ab7b8ba, release, x86_64-apple-darwin)
v8 8.7.220.3
typescript 4.0.5

The same problem here!

I have the same problem with deno version 1.5.3. For workaround approach: Does anybody know what is the latest deno version with oak-graphql works well without these error message?

@gtrombitas I have it working with this docker image: hayd/alpine-deno:1.4.6

My bad
I just noticed the error is still happening in another project with the same docker image, so I dont know

Thanks a lot @dadtmt! With version 1.4.6 from Deno works without errors. It is a good temporary solution until this issue will be fixed.

@gtrombitas Is this still working for you ?
With my full project code it is not working anymore (same errors)
I have to investigate, but don't have the time right now.

@dadtmt Yes it works but this issue sounds really interesting for me... Today I have upgraded Deno to version 1.5.4 and my project works with oak_graphql@0.6.2 but I don't know why.
After every version change from Deno I reload the cache with the following command:
deno cache --reload --no-check file.ts
Unfortunately I don't know how to use with Docker but maybe you should give it a try.