anvaka / ngraph.graph

Graph data structure in JavaScript
BSD 3-Clause "New" or "Revised" License
520 stars 66 forks source link

require.js synch error #8

Closed Pellegrin-kim closed 6 years ago

Pellegrin-kim commented 6 years ago

Hello,

I'm certainly doing something wrong cause I tried your code and got the following error. Cannot figure out how to fix it

require.js:7 Uncaught Error: Module name "ngraph.fromjson" has not been loaded yet for context: _. Use require([]) http://requirejs.org/docs/errors.html#notloaded

thank you for you help

Kim

Pellegrin-kim commented 6 years ago

Solution found. I should have started with a Node.js for dummies tuto. I was actually running the code on client side. Beeing on server side works better.