Module import requires unsafe-eval in script content security policy directive

prashant-shahi commented :

I would recommend you use to dgraph-js-http instead.

You can check out this sample electron app which makes use of dgraph-js-http client.