ml-in-barcelona / jsoo-react

js_of_ocaml bindings for ReactJS. Based on ReasonReact.
https://ml-in-barcelona.github.io/jsoo-react
MIT License
138 stars 19 forks source link

Error when running example #8

Closed schinns closed 5 years ago

schinns commented 5 years ago

I successfully installed both npm and opam dependencies. Joo is generating js files. I am getting an error when I open bin/index.html.

Screen Shot 2019-05-28 at 10 44 44 AM

This is where the error is in App.bc.js:

Screen Shot 2019-05-28 at 10 55 20 AM
jchavarri commented 5 years ago

hey!

Yeah, i'm still figuring out the bundling / JS dependencies part in jsoo.

There is a workaround though, that involve updating the files in node_modules, see https://github.com/jchavarri/rroo#uncaught-typeerror-cannot-set-property-react-of-undefined.

schinns commented 5 years ago

Got it! Sorry I missed that section in the readme! ^^;