shannonmoeller / gulp-hb

A sane Gulp plugin to compile Handlebars templates. Useful as a static site generator.
http://npm.im/gulp-hb
MIT License
147 stars 14 forks source link

Upgraded to v3, getting: Error: Cannot find module 'gulp-hb' #30

Closed spacedawwwg closed 8 years ago

spacedawwwg commented 8 years ago

After upgrading to v3.0.0 I have now started getting

MacBook-Pro:project Paul$ gulp
module.js:339
    throw err;
    ^

Error: Cannot find module 'gulp-hb'
    at Function.Module._resolveFilename (module.js:337:15)
    at Function.Module._load (module.js:287:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/ProjectPath/build/lab/lab--compile.js:5:10)
    at Module._compile (module.js:425:26)
    at Object.Module._extensions..js (module.js:432:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)

I have tried removing node_modules and re-installing the whole lot, but I get the same issue.

I haven't changed a thing in my build scripts, so I am just wondering what has changed that might be causing the error?

NOTE: I use require-dir to separate my gulp tasks

spacedawwwg commented 8 years ago

I have reverted back to v2.6.5 as that still works for now

shannonmoeller commented 8 years ago

Well that was embarrassing. I messed up the "main" field in the package.json. So sorry. Fixed! Thanks.

Released as v3.0.1

shannonmoeller commented 8 years ago

Be sure to checkout the changelog as there are some known breaking changes. This just wasn't one of them.