You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now when you want to test it on the browser side the require directive is not reconised by the JS on the browser side. " const dgraph = require("dgraph-js-http"); " gives an error.
I manage to use a "bundler " and got to the next series of problems ;)
Could you please provide with an example ?
This worked a little :
browserify index-promise.js > bundle.js
The text was updated successfully, but these errors were encountered:
hubyhuby
changed the title
Example : How to bundle the 'dgraph-js-http' lib in an HTML page
Browser example : How to bundle the 'dgraph-js-http' lib in an HTML page
Nov 11, 2019
http1.zip
There is an example for Node.js on server side that is working well.
https://github.com/dgraph-io/dgraph-js-http/tree/master/examples/simple
Now when you want to test it on the browser side the require directive is not reconised by the JS on the browser side. " const dgraph = require("dgraph-js-http"); " gives an error.
I manage to use a "bundler " and got to the next series of problems ;)
Could you please provide with an example ?
This worked a little :
browserify index-promise.js > bundle.js
The text was updated successfully, but these errors were encountered: