@nostr-dev-kit/ndk declared as workspace:* with no workspace setup #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
After patching the Dockerfile to use pnpm (per #1) and
--no-frozen-lockfile(per #2),pnpm install --no-frozen-lockfilestill fails:(The empty "Packages found in the workspace:" line is the giveaway — pnpm scanned for workspace packages and found none.)
Root cause
package.jsondeclares:…but the repo has no
pnpm-workspace.yamland no sibling packages with the name@nostr-dev-kit/ndk. Theworkspace:protocol assumes a monorepo setup where the referenced package is another workspace member — there isn't one.This means upstream is either:
The
pnpm-lock.yamlconfirms the resolved version was@nostr-dev-kit/ndk@2.8.1, so they were getting real NDK from npm at lockfile-generation time, not from a local workspace.Fix we applied
Replace the workspace reference with a concrete version pin in
package.json:Version pulled from what the existing
pnpm-lock.yamlwas resolving ('@nostr-dev-kit/ndk':@nostr-dev-kit/ndk@2.8.1(typescript@5.1.3)).Real fix
Either:
workspace:*with"^2.8.1"(or whatever the intended pin is) — matches what the lockfile already resolves to.pnpm-workspace.yamland vendor NDK in a sibling directory (probably not the intent).Option 1 is the obvious one.
Acceptance
package.jsonpinned to2.8.1.package.jsonpin restored (whatever version).pnpm-lock.yamlpost-pin (re-resolves #2).Cross-refs
pingOrDieself-watchdog false-positives → bunker exits every 30s on non-public relays #4getKeysthrows on passphrase-encrypted entries —nip19.decode({iv, data})fails #5pablof7z/nsecbunkerd:latestis arm64-only — fails on amd64 hosts #6startKeypasses bech32 nsec to NDKPrivateKeySigner — every newly-created key fails to load #8