jonschlinkert / templates

System for creating and managing view collections, rendering, engines, routes and more. See the "dev" branch for most recent updates.
MIT License
60 stars 9 forks source link

Cannot find module 'async' #13

Closed yvanavermaet closed 8 years ago

yvanavermaet commented 8 years ago

Hi

We're using a module named "assemble" and this module uses this one. The modules are installed with a "--production" flag. When using the assemble module, the following error occurs:

Error: Cannot find module 'async' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:286:25) at Module.require (module.js:365:17) at require (module.js:384:17) at Object. (/var/app/buildslave/jenkins/workspace/Team Awesom-O/APM/APM Frontend/APM Frontend - deploy DEV/node_modules/assemble/node_modules/assemble-core/node_modules/templates/lib/plugins/context.js:3:13)

It seems the context.js file uses the async-module, but according to the package.json, this should just be a devDependency. I believe that's where the problem is located.

If you need any more information, let me know.

Kind regards, Yannick

doowb commented 8 years ago

Thanks for pointing this out. We'll get it fixed.

doowb commented 8 years ago

Fixed in 0.13.4. You should be able to reinstall assemble to get the latest.

yvanavermaet commented 8 years ago

@doowb Works like a charm, thx for the fast fix!