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] pnpm start fails #3335

Closed
sagar-jani opened this issue Oct 11, 2024 · 5 comments · Fixed by #3468
Closed

[BUG] pnpm start fails #3335

sagar-jani opened this issue Oct 11, 2024 · 5 comments · Fixed by #3468
Labels
setup Setup related issues

Comments

@sagar-jani
Copy link

sagar-jani commented Oct 11, 2024

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

  • Installation [e.g. docker, npx flowise start, pnpm start]
  • Flowise Version [e.g. 1.2.11]
  • OS: [e.g. macOS, Windows, Linux]
  • Browser [e.g. chrome, safari]

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[email protected][email protected]/node_modules/openai/helpers/zod.js'
Error: Cannot find module '/Users/sagarjani/Flowise/node_modules/.pnpm/@langchain[email protected][email protected]/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
Copy link
Contributor

Do you have node >= 18.15.0?

@HenryHengZJ HenryHengZJ added the setup Setup related issues label Oct 12, 2024
@sagar-jani
Copy link
Author

Yes I am using Node v20 on Apple M1

@birksy89
Copy link

birksy89 commented Oct 30, 2024

I have the same issue, both locally and when deploying to Railway.

Currently running (successfully) 1.8.2 and trying to update to 2.1.3

image

When upgrading the nodes of existing flows are no longer recognised - And when trying to add a node, the list is not fully populated. Many "tools" / "agents" are missing.

I get the same error as above, across a lot of modules:

flowise:dev: Error: Cannot find module 'C:\Users\Andrew\Desktop\Projects_Client\Flowise\node_modules.pnpm@[email protected][email protected]\node_modules\openai\helpers\zod.js'

flowise:dev: 2024-10-30 08:17:49 [ERROR]: ❌ [server]: Error during initDatabase with file C:\Users\Andrew\Desktop\Projects\_Client\Flowise\packa
ges\server\node_modules\flowise-components\dist\nodes\agents\MRKLAgentChat\MRKLAgentChat.js: Cannot find module 'C:\Users\Andrew\Desktop\Projects\_Client\Flowise\node_modules\.pnpm\@[email protected][email protected]\node_modules\openai\helpers\zod.js'
flowise:dev: Error: Cannot find module 'C:\Users\Andrew\Desktop\Projects\_Client\Flowise\node_modules\.pnpm\@[email protected][email protected]\node_modules\openai\helpers\zod.js'

Node

Locally v20.10.0 Windows
Also Railway via Docker

References

#3067
openai/openai-node#1072

@aluferraz
Copy link
Contributor

same issue, any updates?

aluferraz added a commit to aluferraz/Flowise that referenced this issue Nov 6, 2024
Fix FlowiseAI#3335 and FlowiseAI#3067

openai helpers was introduced in 4.57.3:

openai/openai-node@1e9808a
@aluferraz
Copy link
Contributor

aluferraz commented Nov 6, 2024

Updating the openai resolution to "4.57.3" it fixes the issue.

openai/helpers was created on 4.57.3

openai/openai-node@1e9808a

here is the PR:

#3468

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

Successfully merging a pull request may close this issue.

4 participants