jaredly / jaredly/reprocessing-example-cross-platform

Compilation error when installing dependencies with yarn

Đang mở
#1 2 bình luận 3 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
OCaml
Star
50
Fork
5
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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!

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện `yarn install` và kiểm tra bản build bị lỗi trong `node_modules/matchenv`, đặc biệt là `lib/bs` và đầu ra của lệnh `bsb`. Điều tra lý do `bs-platform` không thể tìm thấy `Pervasives`; hoàn thành khi các dependency của ví dụ được cài đặt mà không có lỗi biên dịch.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
ocaml
Lĩnh vực
build-system
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.