Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
alex-mccreary opened this issue Aug 22, 2023 · 1 comment

Comments

@alex-mccreary
Copy link

alex-mccreary commented Aug 22, 2023

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
@stbrody
Copy link
Contributor

stbrody commented Aug 22, 2023

@ukstv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants