Sean KnowlesS
Deno17mo ago
25 replies
Sean Knowles

Deno install npm: specificers not working at the moment.

I have tried Deno Install and have added the packages to my deno.json using deno add with the npm: prefix.

{
  "name": "@scope/opsap-data",
  "exports": "./mod.ts",
  "version": "0.0.1",
  "imports": {
    "@momiji/cors": "jsr:@momiji/cors@^1.0.1",
    "@oak/oak": "jsr:@oak/oak@^16.1.0",
    "rxdb": "npm:rxdb@^15.32.0",
    "rxjs": "npm:rxjs@^7.8.1"
  }
}


However no matter what I try, I can't run any projects that were previously working and can't seem to get the imports working for rxdb npm packages. Stuck again, any help would be greatly appreciated.

If I try to run a previous backend service that was working I get this now.

seanknowles@ip-10-23-44-20 ‹ main ↑●● › : ~/Projects/Zemili/moonrepoV3/apps/zemili/backend
[0] % deno task dev
Task dev deno run -A --watch main.ts
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...
Screenshot_2024-09-02_at_09.21.17.png
Screenshot_2024-09-02_at_09.22.26.png
Was this page helpful?