bsb-native icon indicating copy to clipboard operation
bsb-native copied to clipboard

ppx compilation is broken when used in a library

Open jaredly opened this issue 7 years ago • 1 comments

e.g. my app has a dependency, and the dependency is doing a ppx on its own files. It breaks because npm puts bs-platform in the node_modules directory of the app (b/c it's shared) but the ppx compilation step expects bs_tools_ppx.exe to be in the node_modules of the dependency.

The error:

sh: /[etc etc]/the-project/node_modules/the-library/node_modules/bs-platform/lib/bs_ppx_tools.exe: No such file or directory

jaredly avatar Aug 09 '18 02:08 jaredly

This can also be broken with yarn workspace in cases where node_modules are hoisted.

rtsao avatar Oct 28 '18 18:10 rtsao