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

cloud package peerDependencies error #1274

Closed
mars-peng-lb opened this issue Sep 30, 2024 · 3 comments · Fixed by #1291
Closed

cloud package peerDependencies error #1274

mars-peng-lb opened this issue Sep 30, 2024 · 3 comments · Fixed by #1291
Labels
bug Something isn't working

Comments

@mars-peng-lb
Copy link

When installing llamaindex using npm, the version of the peerDependencies section of the cloud package under node_modules has an error.

In the package.json file, it can be seen that the versions in the peerDependencies section are duplicated twice.

I'm not sure what happened, but this will cause Deno to encounter an error when resolving versions.

And I can confirm that llamaindex version 0.6.0 works, but the later versions do not.

  "name": "@llamaindex/cloud",
  "version": "0.2.9",
  "type": "module",
  "license": "MIT",
  "files": [
    "openapi.json",
    "./api",
    "./reader"
  ],
  "exports": {
    "./openapi.json": "./openapi.json",
    "./api": {
      "require": {
        "types": "./api/dist/index.d.cts",
        "default": "./api/dist/index.cjs"
      },
      "import": {
        "types": "./api/dist/index.d.ts",
        "default": "./api/dist/index.js"
      },
      "default": {
        "types": "./api/dist/index.d.ts",
        "default": "./api/dist/index.js"
      }
    },
    "./reader": {
      "require": {
        "types": "./reader/dist/index.d.cts",
        "default": "./reader/dist/index.cjs"
      },
      "import": {
        "types": "./reader/dist/index.d.ts",
        "default": "./reader/dist/index.js"
      },
      "default": {
        "types": "./reader/dist/index.d.ts",
        "default": "./reader/dist/index.js"
      }
    }
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/run-llama/LlamaIndexTS.git",
    "directory": "packages/cloud"
  },
  "devDependencies": {
    "@hey-api/client-fetch": "^0.2.4",
    "@hey-api/openapi-ts": "^0.53.0",
    "@llamaindex/core": "^0.2.8",
    "@llamaindex/env": "^0.1.13",
    "bunchee": "5.3.2"
  },
  "peerDependencies": {
    "@llamaindex/core": "^0.2.80.2.8",
    "@llamaindex/env": "^0.1.130.1.13"
  },
  "dependencies": {
    "magic-bytes.js": "^1.10.0"
  },
  "scripts": {
    "generate": "pnpx @hey-api/[email protected]",
    "build": "pnpm run generate && bunchee"
  }
}
@himself65 himself65 added the bug Something isn't working label Sep 30, 2024
@himself65
Copy link
Member

seems like pnpm have a bug or something

@himself65
Copy link
Member

I will bump the pnpm version to see if it works

@himself65
Copy link
Member

There's a type in package.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants