-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
I'm following examples on:
https://projectstorm.gitbook.io/react-diagrams/getting-started/using-the-library
First issue was installing @projectstorm/react-diagrams. I could not get any examples to run without npm install --save the following:
@emotion/core
@emotion/styled
@projectstorm/react-canvas-core
closest
mathjs
pathfinding
After installing those, I was able to start my react-app. Adding the following triggers an error:
const engine = createEngine();
Error being:
TypeError: class constructors must be invoked with 'new'
It's expecting new createEngine(); but all example code and docs don't show use of new.
I'm curious if anyone else is experiencing this or if I perhaps installed this incorrectly or using this incorrectly?
Thanks
alexandrudanpop, VladimirCourse, mrkchang, leota, milufranz08 and 1 moresoonoo