jerosoler / Drawflow

Simple flow library 🖥️🖱️
https://jerosoler.github.io/Drawflow/
MIT License
4.64k stars 722 forks source link

not able to run drawflow index.html with new code changes in drawflow.js and pointing script to .js file. #223

Closed sompoo closed 3 years ago

sompoo commented 3 years ago

Hi , I am utilizing drawflow for my project purpose and I have followed the steps given in readme file. It works well when script sources to drawflow.min.js from githlink . Now I tried to add few buttons and its functionality and pointed the script to drawflow,js , it gives an error as below

image

image

Can you please help in this regard ?

jerosoler commented 3 years ago

Hi @sompoo

How are you importing drawflow?

sompoo commented 3 years ago

hi @jerosoler , I am importing drawflow at start of the drawflow.js thinking that when control will come on line 101 on index.html , it will have the Drawflow already imported and available.

image

Please suggest the correct way if this is wrong.

jerosoler commented 3 years ago

Have you installed the package before?

npm i drawflow

Are you using a webpack type bundle?

You can also download the release and add without cdn.

sompoo commented 3 years ago

yes I installed drawflow package before importing and followed the steps as mentioned in readme. If possible can we please connect over a call to quickly check where this is going wrong?

jerosoler commented 3 years ago

How is the server running? With what command?