Closed dyst5422 closed 6 years ago
Every time I have a package listed in ocamlfind-dependencies, compiling fails with the message ocamlfind: Package 'xxx' not found
ocamlfind-dependencies
ocamlfind: Package 'xxx' not found
Example:
bsconfig.json
{ "name": "hello", "version": "0.1.0", "sources": { "dir" : "src", "subdirs" : true }, "package-specs": { "module": "commonjs", "in-source": true }, "suffix": ".bs.js", "ocamlfind-dependencies": ["core"], "warnings": { "error" : "+101" }, "entries": [{ "backend": "bytecode", "main-module": "Index" }] }
Error
jdstewar@LMC-056682 reason $ yarn build yarn run v1.3.2 $ bsb -make-world ninja: Entering directory `lib/bs/bytecode' [1/2] Building src/index.cmo FAILED: src/index.cmo src/index.cmi ocamlfind ocamlc -I src -package core -thread -passopt -no-alias-deps -passopt -color -passopt always -o src/index.cmo -w -30-40+6+7+27+32..39+44+45+101 -warn-error +101 -g -c -intf-suffix .mliast_simple -impl src/index.mlast_simple ocamlfind: Package `core' not found ninja: build stopped: subcommand failed. error Command failed with exit code 2. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. jdstewar@LMC-056682 reason $
Hey! I'm assuming you've installed opam and core. Could you run opam info core and paste the output here?
opam
opam info core
Oh my god, I'm an idiot. Disregard.
Haha no worries!
Every time I have a package listed in
ocamlfind-dependencies
, compiling fails with the messageocamlfind: Package 'xxx' not found
Example:
bsconfig.json
Error