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

Unable to use Flume in non-React NodeJS environment with TypeScript #249

Open
AndyEsser opened this issue Jan 7, 2025 · 1 comment
Open

Comments

@AndyEsser
Copy link

AndyEsser commented Jan 7, 2025

I'm working on a piece of software NodeJS using TypeScript. As soon as I import Flume, and instantiate the FlumeConfig it throws an error

node_modules/flume/dist/types.d.ts:289:58 - error TS2503: Cannot find namespace 'React'.

I'm aware that React is required for the Node Editor, but I just want to programmatically create a node graph, and execute it in NodeJS. According to https://flume.dev it should be possible to use Flume without React - is there a step I'm missing?

Can you please advise?

Minium reproducible example

minimum.ts

import { FlumeConfig } from "flume";

const config = new FlumeConfig();

Executing via npx tsc minimum.ts && node minimum.js

@AndyEsser
Copy link
Author

If I simply rename the file to minimum.js and run node minimum.js then it doesn't error

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

1 participant