Revadike
Revadike
DDeno
Created by Revadike on 4/20/2025 in #help
Local npm package
Is your patch solution available in Deno v2.1.4? How should I set up my configuration in my case? Is it possible to do this with npm install instead of deno install? Or should I not? Do I need to have my local npm package published? Once successfully setup, how should I import my local npm package in my code?
8 replies
DDeno
Created by Revadike on 4/20/2025 in #help
Local npm package
really? I had that issue with deno v1, but now with v2 i have the error above
8 replies
DDeno
Created by Revadike on 4/20/2025 in #help
Local npm package
Ok, so I found out supabase edge functions still run one Deno v1. I've now forced supabase to use deno v2:
Using supabase-edge-runtime-1.68.0-develop.13 (compatible with Deno v2.1.4)
However, I still can't get it to work. I keep running into the following issue:
Failed loading patch '../../packages/entities' in config 'file:///supabase/functions/'.: Could not find patch member in 'file:///packages/entities/'.
Any help would be much appreciated!
8 replies
DDeno
Created by Revadike on 4/20/2025 in #help
Local npm package
I tried the following:
{
"imports": {
"@skt/entities": "npm:@skt/entities@0.0.0",
"@supabase/supabase-js": "jsr:@supabase/supabase-js@^2.49.1",
"error-serializer": "npm:error-serializer@^8.0.0",
"steam-signin": "npm:steam-signin@^1.0.5",
"steam-user": "npm:steam-user@^5.2.0"
},
"patch": [
"../../packages/entities"
],
"unstable": [
"npm-patch"
],
"nodeModulesDir": "auto"
}
{
"imports": {
"@skt/entities": "npm:@skt/entities@0.0.0",
"@supabase/supabase-js": "jsr:@supabase/supabase-js@^2.49.1",
"error-serializer": "npm:error-serializer@^8.0.0",
"steam-signin": "npm:steam-signin@^1.0.5",
"steam-user": "npm:steam-user@^5.2.0"
},
"patch": [
"../../packages/entities"
],
"unstable": [
"npm-patch"
],
"nodeModulesDir": "auto"
}
But then I get:
> deno install
error: npm package '@skt/entities' does not exist.

> deno --version
deno 2.2.11 (stable, release, x86_64-pc-windows-msvc)
v8 13.5.212.10-rusty
typescript 5.7.3
> deno install
error: npm package '@skt/entities' does not exist.

> deno --version
deno 2.2.11 (stable, release, x86_64-pc-windows-msvc)
v8 13.5.212.10-rusty
typescript 5.7.3
And if I try to import
import * as entities from '@skt/entities';
import * as entities from '@skt/entities';
I get:
failed to create the graph: Relative import path "@skt/entities" not prefixed with / or ./ or ../
at file:///index.js:7:34
failed to create the graph: Relative import path "@skt/entities" not prefixed with / or ./ or ../
at file:///index.js:7:34
8 replies
DDeno
Created by Revadike on 4/20/2025 in #help
Local npm package
@dsherret you available?
8 replies