Dgraph-js and auth-token problem - Error: Incorrect arguments passed

My bad…

I found that when I changed from:

var grpc = require('grpc')

to

var grpc = require('@grpc/grpc-js')

It works as expected.

Sorry for the trouble, and thanks for the help of providing appropriate formatting.

Cheers
Erlend

1 Like