FlowiseAI / Flowise

Drag & drop UI to build your customized LLM flow
https://flowiseai.com
Apache License 2.0
30.8k stars 16.01k forks source link

[BUG] pnpm start fails #3335

Open sagar-jani opened 1 week ago

sagar-jani commented 1 week ago

Describe the bug Starting the flowise using pnpm or docker (tried both approaches) give below errors, It opens the flowise app locally but it doens't have most of the agents installed.

To Reproduce Steps to reproduce the behavior:

  1. Clone the github repo
  2. pnpm install
  3. pnpm build
  4. pnpm start

Expected behavior Start the flowise app with all the modules but it gives errors

Screenshots If applicable, add screenshots to help explain your problem.

Flow If applicable, add exported flow in order to help replicating the problem.

Setup

Additional context 2024-10-11 15:00:24 [INFO]: Starting Flowise... 2024-10-11 15:00:24 [INFO]: 📦 [server]: Data Source is initializing... 2024-10-11 15:00:25 [ERROR]: ❌ [server]: Error during initDatabase with file /Users/sagarjani/Flowise/packages/server/node_modules/flowise-components/dist/nodes/agents/AirtableAgent/AirtableAgent.js: Cannot find module '/Users/sagarjani/Flowise/node_modules/.pnpm/@langchain+openai@0.2.11_encoding@0.1.13/node_modules/openai/helpers/zod.js' Error: Cannot find module '/Users/sagarjani/Flowise/node_modules/.pnpm/@langchain+openai@0.2.11_encoding@0.1.13/node_modules/openai/helpers/zod.js' at createEsmNotFoundErr (node:internal/modules/cjs/loader:1262:15) at finalizeEsmResolution (node:internal/modules/cjs/loader:1250:15) at resolveExports (node:internal/modules/cjs/loader:634:14) at Module._findPath (node:internal/modules/cjs/loader:724:31) at Module._resolveFilename (node:internal/modules/cjs/loader:1211:27) at Module._load (node:internal/modules/cjs/loader:1051:27)

HenryHengZJ commented 1 week ago

Do you have node >= 18.15.0?

sagar-jani commented 1 week ago

Yes I am using Node v20 on Apple M1