You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason it seems like having a package.json in a different workspace member affects resolution in a workspace member that doesn't have one. In this case the "Could not find matching package in package.json file" error is thrown in a workspace member that has no package.json.
error: Could not find a matching package for'npm:path-to-regexp@6.2.1'in a package.json file. You must specify this as a package.json dependency when the node_modules folder is not managed by Deno.
at https://jsr.io/@oak/oak/16.1.0/deps.ts:87:8
Version: Deno 2.0.0-rc.0+42cf762
The text was updated successfully, but these errors were encountered:
We should only enable byonm when the root workspace folder has a package.json.
The reason is so that adding a new workspace member that has a package.json doesn't change the behaviour.
dsherret
changed the title
Bug: "Could not find matching package in package.json file" with no package.json
Deno 2.0: BYONM should only be enabled when root folder has package.json
Sep 3, 2024
For some reason it seems like having a
package.json
in a different workspace member affects resolution in a workspace member that doesn't have one. In this case the "Could not find matching package inpackage.json
file" error is thrown in a workspace member that has nopackage.json
.Steps to reproduce
cd apps/zemili/backend/
deno task dev
Output:
Version: Deno 2.0.0-rc.0+42cf762
The text was updated successfully, but these errors were encountered: