existsSync in not a function

Moved from GitHub dgraph-js/29

Posted by mofodox:

Hi there,

I created a react project app using the create-react-app CLI and installed dgraph and grpc via yarn add. And I’m currently facing an issue which it says existsSync in not a function. And when I clicked on the error, it brings me to the grpc_extension.js.

Here’s the screenshot to the error: error_image. Hope to hear from you guys soon! Thank you!

gpahal commented :

Which version of grpc are you using?

mofodox commented :

@gpahal I’m using the latest version of grpc which is 1.10.0

mofodox commented :

@gpahal This is what I found. What’s your advice on this?

gpahal commented :

Can you share a bit of your code which is causing this error?
I tried out grpc v1.10 for a sample program I have. I was not able to reproduce this issue.

gpahal commented :

Oh! I just realized. This client is a node.js client and not for JS frontend. This is because of gRPC. It doesn’t support browsers as it’s based on C++ code and HTTP/2.