mulesoft-labs / raml-client-generator

Template-driven generator of clients for APIs described by a RAML spec
Other
121 stars 27 forks source link

With 01.0 release - exception on line 4 of raml-client.js #18

Closed nmunro-cvt closed 9 years ago

nmunro-cvt commented 9 years ago

JS client is generated cleanly in version 0.0.7 but with 0.1.0 I get error

$ raml-to-client api.raml -o api-client -l javascript module.js:338 throw err; ^ Error: Cannot find module '../' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:278:25) at Module.require (module.js:365:17) at require (module.js:384:17) at Object. (/usr/local/lib/node_modules/raml-client-generator/bin/raml-client.js:4:17) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Function.Module.runMain (module.js:501:10) $

Seems to happen on this line in raml-client.js

var languages = require('../')

so I don't think it has anything to do with my RAML

blakeembrey commented 9 years ago

You're correct, it's not. My fault, I'll release a patch for you right now :+1:

blakeembrey commented 9 years ago

Released with 0.1.1.