adrai / adrai/flowchart.js

Cannot render server-side

Aperta
#78 7 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
8.7k
Fork
1.2k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

In node.js, when I call

```
require('flowchart.js')
```

I get the Raphael exception below:

```
/.../node_modules/raphael/dev/raphael.core.js:96
doc: document,
^

ReferenceError: document is not defined
at /.../node_modules/raphael/dev/raphael.core.js:96:18
at /.../node_modules/raphael/dev/raphael.core.js:15:26
at Object. (/.../node_modules/raphael/dev/raphael.core.js:19:2)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at /.../node_modules/raphael/raphael.amd.js:16:23
```

Thank you for the good work !

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.