jaredly / jaredly/reprocessing-example-cross-platform
Compilation error when installing dependencies with yarn
- 主要语言
- OCaml
- 星标
- 50
- 派生
- 5
- PR 合并指标
- 30 天内没有已合并 PR
描述
Hi Jared,
I am trying to run this example but I can't due I get the following error while installing the dependencies with `yarn`.
yarn install v1.3.2
info No lockfile found.
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 📃 Building fresh packages...
[1/7] ⡀ sdl2
[2/7] ⡀ ppx-env: ninja: Entering directory `lib/bs'
[3/7] ⢀ matchenv: [2/3] Building src/index.mlast
[4/7] ⢀ bs-platform
error /Users/arielschiavoni/Projects/opensource/reprocessing-example-cross-platform/node_modules/matchenv: Command failed.
Exit code: 2
Command: bsb && cp lib/bs/native/index.native matchenv
Arguments:
Directory: /Users/arielschiavoni/Projects/opensource/reprocessing-example-cross-platform/node_modules/matchenv
Output:
ninja: Entering directory `lib/bs'
[1/3] Building Matchenv.cmi
[2/3] Building src/index.mlast
[3/3] Building src/index.mlast.d
[1/1] Building src/index-Matchenv.cmj
FAILED: src/index-Matchenv.cmj /Users/arielschiavoni/Projects/opensource/reprocessing-example-cross-platform/node_modules/matchenv/lib/js/src/index.js src/index-Matchenv.cmi
/usr/local/lib/node_modules/bs-platform/lib/bsc.exe -bs-package-map matchenv -bs-package-output commonjs:lib/js/src -bs-assume-no-mli -bs-no-builtin-ppx-ml -bs-no-implicit-include -I . -I src -w -30-40+6+7+27+32..39+44+45+101 -nostdlib -I '/Users/arielschiavoni/Projects/opensource/reprocessing-example-cross-platform/node_modules/bs-platform/lib/ocaml' -no-alias-deps -color always -bs-re-out -bs-super-errors -o src/index-Matchenv.cmj -c src/index.mlast
We've found a bug for you!
command line
The module or file Pervasives can't be found.
- If it's a third-party dependency:
- Did you list it in bsconfig.json?
- Did you run `bsb` instead of `bsb -make-world`
(latter builds third-parties)?
Thanks!
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先重现 `yarn install`,并检查 `node_modules/matchenv` 中失败的构建,尤其是 `lib/bs` 和 `bsb` 命令的输出。调查 `bs-platform` 无法找到 `Pervasives` 的原因;当示例的依赖项能够在没有编译错误的情况下完成安装时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- ocaml
- 领域
- build-system
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100