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.
I have a project using
pnpmwith the following structure:Which fails with the error:
Since
rescript-nodejsis a dependency of therescript-sandboxit should be taken from thepackages/rescript-sandbox/node_modulesinstead ofapps/backoffice/node_modules.