jerosoler / Drawflow

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

Cannot read property 'classList' of null" #59

Closed chastoedov closed 3 years ago

chastoedov commented 3 years ago

Hi! Thank you for the great library!😍🤗

I ran a test file on my server - work!👍

Now I'm trying to run this example using the VueJS components. image

Here is the result of this component image

But on the editor.start(); get the error "Cannot read property 'classList' of null" image

Please tell me what the error may be and how to fix it?

chastoedov commented 3 years ago

Found a solution :)

Replaced created () with mounted ()

jerosoler commented 3 years ago

Hello @chastoedov

Thank you for the great library!heart_eyeshugs

Thanks!! 🎉

Found a solution :)

Perfect!

If you are using vue you can see these examples https://github.com/jerosoler/Drawflow/issues/37 and https://github.com/jerosoler/Drawflow/issues/34