utop should't crash when the library you load has the same name as utop's dependencies
davesnx opened this issue · 0 comments
davesnx commented
Hi,
I have found an issue where I'm developing a library that exposes "React" and when running dune utop
it crashes with opam's react.
Is there any way utop doesn't load react
on the session or namespaced at least?
(The problem probably happens with other dependencies)
File "_none_", line 1:
Error: Files /home/user/builds/buildbot999/ahrefs/monorepo/_opam/lib/server-reason-react/react/react.cma(React)
and /home/user/builds/buildbot999/ahrefs/monorepo/_opam/lib/react/react.cma(React)
both define a module named React
davesnx commented
utop doesn't load dependencies, it's dune ocaml/dune#8735.
Closing this, and sorry for the noise.