Skip to content

Cannot load Flow.JS using Require.JS #13

@paulcanning

Description

@paulcanning

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!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions