Skip to content

Resolving dependencies with pnpm#74

Description

@DZakh

I have a project using pnpm with the following structure:

|
- apps/backoffice - uses packages/rescript-sandbox as a dependency
- packages/rescript-sandbox - uses rescript-nodejs as a dependency

Which fails with the error:

[1/6] 馃尨  Building package tree...thread 'main' panicked at 'Errors reading bsconfig: "Could not read bsconfig. /Users/dzakh/code/carla/web-new/apps/backoffice/node_modules/rescript-nodejs/bsconfig.json - No such file or directory (os error 2)"', src/bsconfig.rs:251:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fatal runtime error: failed to initiate panic, error 5
/Users/dzakh/code/carla/web-new/apps/backoffice/node_modules/.bin/rewatch: line 13: 11690 Abort trap: 6           "$basedir/../../../../node_modules/.pnpm/@rolandpeelen+rewatch@0.0.11/node_modules/@rolandpeelen/rewatch/rewatch" "$@"

Since rescript-nodejs is a dependency of the rescript-sandbox it should be taken from the packages/rescript-sandbox/node_modules instead of apps/backoffice/node_modules.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions