DmitryBaranovskiy / raphael

JavaScript Vector Library

Home Page:https://dmitrybaranovskiy.github.io/raphael/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I am getting Raphael not defined error

ymihir opened this issue · comments

I am creating SPFx web part for SharePoint. I am trying to generate a chart using TreantJS. TreantJS using Raphael js to build the components.
I am always getting Raphael not defined error even i try with multiple ways.

  1. I have loaded the script with SPComponentLoader method.
  2. I have loaded with $.getScript method.
    In both ways, I have tried to print the output in console. with first method it is coming as
    r1 with the second method it is coming as undefined.
    What is wrong here?

Sorry but please take it to the TreantJS maintainers. Or ask in SO.
Thanks