Sean KnowlesS
Deno17mo ago
47 replies
Sean Knowles

Workspaces issue: Error running deno run dev command while starting Oak server

Error running an Oak backend server which imports shared packages server lib I've created.

Watcher Process started.
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
Watcher Process failed. Restarting on file change...

When running deno run dev in my backend app in my monorepo deno workspaces project.

I have shared a packages folder using workspaces (again workspaces being plugged as working on Syntax) But keep running into this error when trying to run my backend in the apps folder which imports the shared backend lib.

I can't seem to use my backend shared packages because of the error above. Any ideas on how to solve it?
Was this page helpful?