I’ve just setup a skeleton project with reason-apollo
and reason-react
.
I created a trivial .re
file and in VSCode I’m seeing this error:
Failure("Ast_mapper: OCaml version mismatch or malformed input")
File "/Users/kevan.stannard/dev/hello-graphql-reason/node_modules/.lsp/Hello-YourProjectName.ast", line 1:
Error: Error while running external preprocessor
Command line: /Users/kevan.stannard/dev/hello-graphql-reason/node_modules/graphql_ppx/ppx '/var/folders/fc/4yp7tfsj2j30rtd84_w3nh280000gp/T/camlppx62afbf' '/var/folders/fc/4yp7tfsj2j30rtd84_w3nh280000gp/T/camlppx41e7e7'
While investigating I found this page:
Checking versions:
$ bsc -version
BuckleScript 7.0.1 ( Using OCaml:4.06.1+BS )
$ ocaml -version
The OCaml toplevel, version 4.09.0
Any suggestions appreciated. Also, not sure which project to report this on, so posting here first.
Thanks