Skip to content

Error: Cannot find package 'dag-jose' imported from C:\Git\project\node_modules\@ceramicnetwork\codecs\lib\ipld.js #2917

@alex-mccreary

Description

@alex-mccreary

Describe the bug
Broken dependency

Error: Cannot find package 'dag-jose' imported from C:\Git\project\node_modules\@ceramicnetwork\codecs\lib\ipld.js
    at new NodeError (node:internal/errors:372:5)
    at packageResolve (node:internal/modules/esm/resolve:954:9)
    at moduleResolve (node:internal/modules/esm/resolve:1003:20)
    at defaultResolve (node:internal/modules/esm/resolve:1218:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:580:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:294:18)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:80:40)
    at ModuleWrap.link (<anonymous>)
    at link (node:internal/modules/esm/module_job:78:36)

To Reproduce
NestJS / ESM
package.json

   "type": "module",
   "engines": {
      "node": ">=14.16"
   },
   "dependencies": {
      "@ceramicnetwork/http-client": "^2.21.0",

Expected behavior
Project runs just like previous version

Screenshots
N/A

Ceramic versions
Broken:
"@ceramicnetwork/codecs@^1.6.1":
"@ceramicnetwork/common@^2.31.1":
"@ceramicnetwork/http-client@^2.21.0":
"@ceramicnetwork/stream-caip10-link@^2.26.1":
"@ceramicnetwork/stream-model-instance@^1.13.1":
"@ceramicnetwork/stream-model@^1.13.1":
"@ceramicnetwork/stream-tile@^2.16.0", "@ceramicnetwork/stream-tile@^2.27.1":
"@ceramicnetwork/streamid@^2.17.0":

Working versions:
"@ceramicnetwork/codecs@^1.4.0":
"@ceramicnetwork/common@^2.29.0":
"@ceramicnetwork/http-client@^2.21.0":
"@ceramicnetwork/stream-caip10-link@^2.24.0":
"@ceramicnetwork/stream-model-instance@^1.11.0":
"@ceramicnetwork/stream-model@^1.11.0":
"@ceramicnetwork/stream-tile@^2.16.0", "@ceramicnetwork/stream-tile@^2.25.0":
"@ceramicnetwork/streamid@^2.16.0":

Machine, OS, browser information (please complete the following information):
Linux / Windows / Docker

Additional context

  • This bug seems to have started after the last published version (5 days ago)
  • Adding "dag-jose": "^4.0.0", to package.json devDependencies is a workaround

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions