Skip to content

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

Open
@AndyEsser

Description

@AndyEsser

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions