Search code examples
gruntjsyeoman-generatorfamo.us

Famo.us grunt serve gives blank browser


Trying to start playing with the Famo.us example. I followed the steps on the Github page and when I do "grunt serve" the browser opens up but with the following errors:

    Failed to load resource: the server responded with a status of 404 (Not Found)
    http://localhost:1337/lib/famous-polyfills/functionPrototypeBind.js
    Failed to load resource: the server responded with a status of 404 (Not Found)  
    http://localhost:1337/lib/famous-polyfills/classList.js
    Failed to load resource: the server responded with a status of 404 (Not Found) 
    http://localhost:1337/lib/famous/core/famous.css
    Failed to load resource: the server responded with a status of 404 (Not Found)    
    http://localhost:1337/lib/famous-polyfills/requestAnimationFrame.js
    Failed to load resource: the server responded with a status of 404 (Not Found)   
    http://localhost:1337/lib/requirejs/require.js

Running it on Windows 7 with Chrome. Any idea how to solve this?


Solution

  • Based on your comment.. If those files do not exist, you need to make them exist. It is strange the files were not created using the ToolBelt.

    Just go to github and grab the files you are missing.

    famous/core : https://github.com/Famous/core

    famous-polyfills : https://github.com/Famous/polyfills

    requirejs: https://github.com/Famous/examples/tree/master/src/lib

    ** EDIT **

    The Author of this tool has submitted a better answer.. Please read TheAlphNerd's response.