treant-js icon indicating copy to clipboard operation
treant-js copied to clipboard

Raphael is missing in package.json

Open erik881 opened this issue 6 years ago • 7 comments

When you install treant-js you have to explicitly install raphael. Could you please add raphael to package.json so explicit raphael installation step can be skipped.

erik881 avatar Apr 25 '18 07:04 erik881

You don't need to install Raphael. It's in vendor/raphael.js

jirkapinkas avatar May 17 '18 06:05 jirkapinkas

@jirkapinkas Any idea why I'm getting an Uncaught ReferenceError: Raphael is not defined error?

emmagency avatar Dec 22 '18 18:12 emmagency

You need to load Raphael as described in documentation: http://fperucic.github.io/treant-js/

jirkapinkas avatar Dec 27 '18 13:12 jirkapinkas

What if treant-js was installed via npm?

spencerfrost avatar Jan 22 '19 16:01 spencerfrost

This is what I have in my project:

        require("treantjs/Treant.css")
        window.Raphael = require("treantjs/vendor/raphael")
        require("treantjs")
        new Treant({ ... })

jirkapinkas avatar Jan 22 '19 16:01 jirkapinkas

Installation should definitely be made easier.

mnemanja avatar Apr 11 '20 23:04 mnemanja