Closed rsaccon closed 6 years ago
Ah, I didn't get a change yet to write better instructions.
So:
you need to be on the bucklescript switch
$ opam switch 4.02.3+buckle-master
And make sure to do:
$ eval `opam config env`
Then:
opam install lwt cotthp result ppx_deriving -y
And then:
$ yarn --production=false
and then:
./node_modules/.bin/bsb -make-world -backend native -w
ok, thanks a lot, now building native works as expected. Still need to adapt my toolchain but that is not an issue with ethereum-re, so I am gonna close this.
Ups, in the README is a typo: should be cohttp
, but is cotthp
you're right, fixed
great, thanks, closing it (again)
I never did any native reason or ocaml stuff, so after successfully building the JS version, my attempt to build the native version did not look good:
Next problem: to integrate the JS version of ethereum-re into my app, I just added the dependency to bsconfig and package.json (as local file package), but I am using parcel for packaging and dev-server and as editor vscode (with
reason.diagnostics.tools
enabled) and this all use bsb as default, which fail to ignore / skip the native stuff and abort with:I guess first I need to adapt my toolchain, before being able to use ethereum-re. Such as using "bs-platform": "bsansouci/bsb-native" and either tweak things so parcel understands the bsb needs to be run with argument
-backend js
or find a different solution for packaging / dev-server such as webpack, which I had before.