2canSam (3) [Avatar] Offline
#1
I was seeing the following error when I ran the browserify command.

[~/babelify_example]$ browserify src/index.js --transform babelify --outfile dist/bundle.js --debug
module.js:557
    throw err;
    ^

Error: Cannot find module 'babel-core'
    at Function.Module._resolveFilename (module.js:555:15)
    at Function.Module._load (module.js:482:25)
    at Module.require (module.js:604:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/user/babelify_example/node_modules/babelify/index.js:2:14)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)



Apparently, you need to add babel-core like so:
npm install --save-dev babel-core
263539 (1) [Avatar] Offline
#2
I would like to say ... after this not working in chapter 2:

$ babel src -d dist

And then this not working in chapter 3:

$ browserify src/index.js --transform babelify --outfile dist/bundle.js --debug

and searching stack overflow then finally the forums for this book I am VERY disappointed.

It will be difficult to learn anything when the examples in the book do NOT work and I have to continually lose my stride second guessing everything and not knowing if the errors are real or not.

Did ANYONE try to go through the book with a clean computer to make sure things actually worked before printing it???

jeeze!