Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When installing and importing Treant and Raphael from npm, getting ReferenceErrors. #141

Open
spencerfrost opened this issue Jan 22, 2019 · 2 comments

Comments

@spencerfrost
Copy link

spencerfrost commented Jan 22, 2019

I managed to get Treant to import by using object destructuring when importing: import { Treant } from 'treant-js' and it renders the basic data but it does not style the tree because Raphael isn't working properly

I get ReferenceError: Raphael is not defined despite being having installed the Raphael node package and imported it accordingly. When I console.log(Raphael) I get Raphael's version number, but Treant is still unable to use Raphael.

Please advise.

@HoseinDanesh
Copy link

@mrspinn
hi mn
problem solved ?

@Xed89
Copy link

Xed89 commented Apr 28, 2021

I'm having a similar issue, importing it from Ember and it does not compile because of a delete inside Raphael. A more recent version of Raphael already resolved this and should be updated, i hope it is compatible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants