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

Cannot load Flow.JS using Require.JS

Open paulcanning opened this issue 9 years ago • 0 comments

I have Require.JS in my JS folder, along side Flow.JS.

I have added the script tag to load Require.JS, then in another script, called:

var flow = require('./flow');

As per the Readme, but it doesn't work.

I get:

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

require.js:8 Uncaught Error: Mismatched anonymous define() module: function (){return c} http://requirejs.org/docs/errors.html#mismatch

I then tried:

var flow = require(['./flow']);

But I got:

Uncaught Error: Mismatched anonymous define() module: function (){return c} http://requirejs.org/docs/errors.html#mismatch

Can I get some help on installing this? Ideally without Require.JS, as I am not using it (apart form to try and load this library!)

paulcanning avatar Sep 16 '15 15:09 paulcanning