cxa / ppx_bsx

OCaml JSX for ReasonReact
MIT License
70 stars 4 forks source link

Error compiling reason files #1

Closed mrkaspa closed 6 years ago

mrkaspa commented 7 years ago

Avoid to process reason files

File "/Users/mrkaspa/code/my-react-app/src/demo.re", line 8, characters 5-89:
Error: Unbound value div
ninja: build stopped: subcommand failed.
>>>> Finish compiling
cxa commented 7 years ago

Could you provide more details? e.g. your code snippets.

mrkaspa commented 7 years ago

I created a reason react project and changed one component to ocaml, enabled this ppx but it threw errors with jsx in a reason file

cxa commented 7 years ago

Does your Reason or OCaml file has something like

[%bsx "<div>hello</div>"]

If not, this should be other issues not related to this ppx.

mrkaspa commented 7 years ago

yes it does, but the error wasn't threw on the ocaml file

cxa commented 7 years ago

Could you post your [%bsx "..."]? The error is too opaque.

cxa commented 6 years ago

Closed due to inactivity.