DenoDDeno
Powered by
Sean KnowlesS
Deno•2y 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...
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?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,944Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Issue with Deno (Oak?)
UC EnjoyerUUC Enjoyer / help
2y ago
Running vite and a deno server in workspaces
AsguhoAAsguho / help
12mo ago
Deno testing with local oak server
fobbanFfobban / help
3y ago
Fresh - Error while running deno run on the built _fresh directory
StéphaneSStéphane / help
2y ago