{"action":"created","issue":{"url":"https://api.github.com/repos/bootprint/bootprint-openapi/issues/60","repository_url":"https://api.github.com/repos/bootprint/bootprint-openapi","labels_url":"https://api.github.com/repos/bootprint/bootprint-openapi/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/bootprint/bootprint-openapi/issues/60/comments","events_url":"https://api.github.com/repos/bootprint/bootprint-openapi/issues/60/events","html_url":"https://github.com/bootprint/bootprint-openapi/issues/60","id":141003253,"number":60,"title":"TypeError: Property 'preprocessor' of object #<Object> is not a function","user":{"login":"robotrobot","id":933278,"avatar_url":"https://avatars.githubusercontent.com/u/933278?v=3","gravatar_id":"","url":"https://api.github.com/users/robotrobot","html_url":"https://github.com/robotrobot","followers_url":"https://api.github.com/users/robotrobot/followers","following_url":"https://api.github.com/users/robotrobot/following{/other_user}","gists_url":"https://api.github.com/users/robotrobot/gists{/gist_id}","starred_url":"https://api.github.com/users/robotrobot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robotrobot/subscriptions","organizations_url":"https://api.github.com/users/robotrobot/orgs","repos_url":"https://api.github.com/users/robotrobot/repos","events_url":"https://api.github.com/users/robotrobot/events{/privacy}","received_events_url":"https://api.github.com/users/robotrobot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-15T15:14:50Z","updated_at":"2016-03-15T22:00:17Z","closed_at":null,"body":"I've started getting the above error when trying to generate swagger docs even from examples (such as petstore.yaml) from the swagger editor.\r\n\r\nIt seems during the merge config step the pre-processor is undefined, some abridged debug output plus the stack trace below. `config.preprocessor` is indeed undefined by the time `customize-engine-handlebars/index.js` gets it's hands on it.\r\n\r\n```\r\n  customize:state New configuration +95ms { handlebars: \r\n   { config: \r\n      { partials: undefined,\r\n        helpers: undefined,\r\n        templates: undefined,\r\n        data: [Object],\r\n        preprocessor: undefined,\r\n        hbsOptions: undefined },\r\n     watched: [] },\r\n  less: \r\n   { config: { main: [Object], paths: undefined },\r\n     watched: \r\n      [ '/usr/lib/node_modules/bootprint-openapi/less/theme.less',\r\n        '/usr/lib/node_modules/bootprint-openapi/less/variables.less' ] },\r\n  _metadata: { config: { modules: [Object] } } }\r\n  customize:base Building +2ms { handlebars: \r\n   { partials: undefined,\r\n     helpers: undefined,\r\n     templates: undefined,\r\n     data: \r\n      { swagger: '2.0',\r\n        info: [Object],\r\n        host: 'localhost:10010',\r\n        basePath: '/3',\r\n        schemes: [Object],\r\n        consumes: [Object],\r\n        produces: [Object],\r\n        securityDefinitions: [Object],\r\n        parameters: [Object],\r\n        paths: [Object],\r\n        definitions: [Object] },\r\n     preprocessor: undefined,\r\n     hbsOptions: undefined },\r\n  less: \r\n   { main: \r\n      [ '/usr/lib/node_modules/bootprint-openapi/less/theme.less',\r\n        '/usr/lib/node_modules/bootprint-openapi/less/variables.less' ],\r\n     paths: undefined },\r\n  _metadata: { modules: [ [Object] ] } }\r\n\r\n/usr/lib/node_modules/bootprint/node_modules/q/q.js:155\r\n                throw e;\r\n                      ^\r\nTypeError: Property 'preprocessor' of object #<Object> is not a function\r\n    at Object.run (/usr/lib/node_modules/bootprint/node_modules/customize-engine-handlebars/index.js:132:21)\r\n    at /usr/lib/node_modules/bootprint/node_modules/customize-watch/node_modules/customize/index.js:291:25\r\n    at /usr/lib/node_modules/bootprint/node_modules/lodash/lodash.js:11671:23\r\n    at /usr/lib/node_modules/bootprint/node_modules/lodash/lodash.js:4143:15\r\n    at baseForOwn (/usr/lib/node_modules/bootprint/node_modules/lodash/lodash.js:2669:24)\r\n    at Function.mapValues (/usr/lib/node_modules/bootprint/node_modules/lodash/lodash.js:11670:7)\r\n    at /usr/lib/node_modules/bootprint/node_modules/customize-watch/node_modules/customize/index.js:288:22\r\n    at _fulfilled (/usr/lib/node_modules/bootprint/node_modules/q/q.js:834:54)\r\n    at self.promiseDispatch.done (/usr/lib/node_modules/bootprint/node_modules/q/q.js:863:30)\r\n    at Promise.promise.promiseDispatch (/usr/lib/node_modules/bootprint/node_modules/q/q.js:796:13)\r\n```\r\n\r\nThis is on a fresh global install as per the instructions, Ubuntu 12.04. \r\n\r\nFull debug output here: https://gist.github.com/robotrobot/e3909b0da6971d339b2f"},"comment":{"url":"https://api.github.com/repos/bootprint/bootprint-openapi/issues/comments/197044418","html_url":"https://github.com/bootprint/bootprint-openapi/issues/60#issuecomment-197044418","issue_url":"https://api.github.com/repos/bootprint/bootprint-openapi/issues/60","id":197044418,"user":{"login":"robotrobot","id":933278,"avatar_url":"https://avatars.githubusercontent.com/u/933278?v=3","gravatar_id":"","url":"https://api.github.com/users/robotrobot","html_url":"https://github.com/robotrobot","followers_url":"https://api.github.com/users/robotrobot/followers","following_url":"https://api.github.com/users/robotrobot/following{/other_user}","gists_url":"https://api.github.com/users/robotrobot/gists{/gist_id}","starred_url":"https://api.github.com/users/robotrobot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robotrobot/subscriptions","organizations_url":"https://api.github.com/users/robotrobot/orgs","repos_url":"https://api.github.com/users/robotrobot/repos","events_url":"https://api.github.com/users/robotrobot/events{/privacy}","received_events_url":"https://api.github.com/users/robotrobot/received_events","type":"User","site_admin":false},"created_at":"2016-03-15T22:00:17Z","updated_at":"2016-03-15T22:00:17Z","body":"I'm getting an error at our build server too (same error) which is always a fresh AWS instance and a clean disk and npm install.\r\n\r\nHowever I have another machine at home which I had working fine yesterday - this is referencing bootprint 0.8.3 and open-api 0.14.0 so clearly something is different.\r\n\r\nWhat version of node does your travis-ci build run the tests as?"}}