Search code examples
javascriptnode.jsgulpreactjsreactjs-flux

Can't build Flux todo-mvc example


Trying to build the flux-todomv example from facebook found here: flux-todomvc

I've run npm installed which has installed the dependencies.

When I run npm start I get back:

watchify -o js/bundle.js -v -d .

1655542 bytes written to js/bundle.js (3.51 seconds)

However the bundle.js file has not been created and when I open index.html there's a 404 error trying to get bundle.js.

Any ideas?


Solution

  • I just pulled the repo to test, and I got it up and running without problems.

    Here's the environment I'm using:

    • OS X Mavericks
    • Node v0.10.29
    • npm 1.4.14
    • git 1.9.4

    Steps on the command line:

    1. git clone https://github.com/facebook/flux.git
    2. cd flux/examples/flux-todomvc/
    3. npm install
    4. npm start
    5. ctrl-C
    6. open index.html

    Then if you want to hack on it, you would start up watchify again with npm start so your changes get transpiled to standard ECMAScript 5.