TS Type error for 'llama-cloud-services' #525

Open
opened 2026-02-16 00:18:07 -05:00 by yindo · 3 comments
Owner

Originally created by @Specy on GitHub (Aug 18, 2025).

Describe the bug
Seems like intellisense and auto import is picking up the llama-cloud-services imports from the /dist subfolder instead of the index, but at runtime the /dist folder crashes because it says the module was not found.

Client:
Please remove untested options:

  • Typescript library llama-cloud-services
TS2307: Cannot find module llama-cloud-services or its corresponding type declarations.
There are types at
/node_modules/llama-cloud-services/dist/index.d.ts
, but this result could not be resolved under your current moduleResolution setting. Consider updating to node16, nodenext, or bundler

I don't have a specified moduleResolution so it defaults to classic.

Not sure if this is expected behaviour so i'm reporting

Originally created by @Specy on GitHub (Aug 18, 2025). **Describe the bug** Seems like intellisense and auto import is picking up the `llama-cloud-services` imports from the /dist subfolder instead of the index, *but* at runtime the /dist folder crashes because it says the module was not found. **Client:** Please remove untested options: - Typescript library llama-cloud-services ``` TS2307: Cannot find module llama-cloud-services or its corresponding type declarations. There are types at /node_modules/llama-cloud-services/dist/index.d.ts , but this result could not be resolved under your current moduleResolution setting. Consider updating to node16, nodenext, or bundler ``` I don't have a specified moduleResolution so it defaults to `classic`. Not sure if this is expected behaviour so i'm reporting
yindo added the bug label 2026-02-16 00:18:07 -05:00
Author
Owner

@jigarzon commented on GitHub (Aug 18, 2025):

same here

@jigarzon commented on GitHub (Aug 18, 2025): same here
Author
Owner

@kimmajor commented on GitHub (Aug 26, 2025):

Same

@kimmajor commented on GitHub (Aug 26, 2025): Same
Author
Owner

@Specy commented on GitHub (Oct 1, 2025):

As a hotfitx, add this to your tsconfig:

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "llama-cloud-services": [
        "node_modules/llama-cloud-services/dist/index.d.ts"
      ]
    }
  }
}

@kimmajor @jigarzon

@Specy commented on GitHub (Oct 1, 2025): As a hotfitx, add this to your tsconfig: ```json { "compilerOptions": { "baseUrl": ".", "paths": { "llama-cloud-services": [ "node_modules/llama-cloud-services/dist/index.d.ts" ] } } } ``` @kimmajor @jigarzon
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_cloud_services#525