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

[BUG] nodes/vectorstores/Chroma/core.ts(3,15): error TS2459: Module '"chromadb"' declares 'Collection' locally, but it is not exported. #3498

Open
brookbnu opened this issue Nov 10, 2024 · 5 comments

Comments

@brookbnu
Copy link

Describe the bug
When attempting to build or run Flowise on Amazon Linux using pnpm build or pnpm dev, the process fails with TypeScript errors and lifecycle script failures. The same setup works perfectly on macOS. The TypeScript error indicates that the chromadb module declares Collection locally but does not export it. Additionally, the script in the server package fails with exit code 1 during startup.

To Reproduce
Steps to reproduce the behavior:

Clone the Flowise repository to an Amazon Linux environment.

Install dependencies using pnpm install.

Run pnpm dev or pnpm build.

Observe the following errors:

TypeScript error: nodes/vectorstores/Chroma/core.ts(3,15): error TS2459: Module '"chromadb"' declares 'Collection' locally, but it is not exported.

Lifecycle script start:default failed with exit code 1.

Expected behavior
The build and development processes (pnpm build and pnpm dev) should complete successfully without any TypeScript errors or lifecycle script failures, just as they do in a macOS environment.

Screenshots
image

Flow
N/A

Setup

Installation: pnpm install followed by pnpm dev

Flowise Version: 2.1.3

OS: Amazon Linux 2 (EC2 instance)

Node Version: 18.15.0

Browser: N/A (backend issue)

Additional context
The TypeScript build works on macOS but fails on Amazon Linux, suggesting a potential environment or dependency compatibility issue. Possible causes could include differences in Node.js versions, environment variables, architecture, or system dependencies. The chromadb module appears to have inconsistencies in its export structure, leading to TypeScript errors during the build. Additionally, the script in the server package (./run start) might have permission issues or incompatible dependencies in the Amazon Linux environment.

@brookbnu brookbnu changed the title [BUG] [BUG] nodes/vectorstores/Chroma/core.ts(3,15): error TS2459: Module '"chromadb"' declares 'Collection' locally, but it is not exported. Nov 10, 2024
@brookbnu
Copy link
Author

image

@brookbnu
Copy link
Author

image

@brookbnu
Copy link
Author

image

@YesIamZhen
Copy link

I found the same issue with Windows platform only, Mac works always well, are you the same?

@YesIamZhen
Copy link

My issue got fixed after I reclone it in a brand new folder. Try this.

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