{"action":"created","issue":{"url":"https://api.github.com/repos/theo4u/sails-hook-swagger-generator/issues/13","repository_url":"https://api.github.com/repos/theo4u/sails-hook-swagger-generator","labels_url":"https://api.github.com/repos/theo4u/sails-hook-swagger-generator/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/theo4u/sails-hook-swagger-generator/issues/13/comments","events_url":"https://api.github.com/repos/theo4u/sails-hook-swagger-generator/issues/13/events","html_url":"https://github.com/theo4u/sails-hook-swagger-generator/issues/13","id":294694634,"number":13,"title":"swaggerGenerator.js is throwing error","user":{"login":"anasuya1117","id":22494819,"avatar_url":"https://avatars2.githubusercontent.com/u/22494819?v=4","gravatar_id":"","url":"https://api.github.com/users/anasuya1117","html_url":"https://github.com/anasuya1117","followers_url":"https://api.github.com/users/anasuya1117/followers","following_url":"https://api.github.com/users/anasuya1117/following{/other_user}","gists_url":"https://api.github.com/users/anasuya1117/gists{/gist_id}","starred_url":"https://api.github.com/users/anasuya1117/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anasuya1117/subscriptions","organizations_url":"https://api.github.com/users/anasuya1117/orgs","repos_url":"https://api.github.com/users/anasuya1117/repos","events_url":"https://api.github.com/users/anasuya1117/events{/privacy}","received_events_url":"https://api.github.com/users/anasuya1117/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-02-06T09:52:16Z","updated_at":"2018-02-07T05:25:42Z","closed_at":null,"author_association":"NONE","body":"\r\n`include-all` attempted to `require(/home/anasuya/Documents/FrescoPlay/date-api/config/swaggergenerator.js)`, but an error occurred:: \r\nDetails:ReferenceError: `sails is not defined`\r\n    at Object.<anonymous> (/home/anasuya/Documents/FrescoPlay/date-api/config/swaggergenerator.js:12:22)\r\n    at Module._compile (module.js:641:30)\r\n    at Object.Module._extensions..js (module.js:652:10)\r\n    at Module.load (module.js:560:32)\r\n    at tryModuleLoad (module.js:503:12)\r\n    at Function.Module._load (module.js:495:3)\r\n    at Module.require (module.js:585:17)\r\n    at require (internal/module.js:11:18)\r\n    at /home/anasuya/Documents/FrescoPlay/date-api/node_modules/include-all/lib/help-include-all-sync.js:271:33\r\n    at Array.forEach (<anonymous>)\r\n    at _recursivelyIncludeAll (/home/anasuya/Documents/FrescoPlay/date-api/node_modules/include-all/lib/help-include-all-sync.js:174:11)\r\n    at includeAll (/home/anasuya/Documents/FrescoPlay/date-api/node_modules/include-all/lib/help-include-all-sync.js:292:5)\r\n    at helpBuildDictionary (/home/anasuya/Documents/FrescoPlay/date-api/node_modules/include-all/lib/help-build-dictionary.js:43:15)\r\n    at Function.module.exports.aggregate (/home/anasuya/Documents/FrescoPlay/date-api/node_modules/include-all/index.js:101:10)\r\n    at Array.loadOtherConfigFiles (/home/anasuya/Documents/FrescoPlay/date-api/node_modules/sails/lib/hooks/moduleloader/index.js:247:22)\r\n    at /home/anasuya/Documents/FrescoPlay/date-api/node_modules/sails/node_modules/async/lib/async.js:591:38\r\n    at _arrayEach (/home/anasuya/Documents/FrescoPlay/date-api/node_modules/sails/node_modules/async/lib/async.js:85:13)\r\n    at Object.async.auto (/home/anasuya/Documents/FrescoPlay/date-api/node_modules/sails/node_modules/async/lib/async.js:552:9)\r\n    at Hook.loadUserConfig (/home/anasuya/Documents/FrescoPlay/date-api/node_modules/sails/lib/hooks/moduleloader/index.js:245:13)\r\n    at Hook.wrapper [as loadUserConfig] (/home/anasuya/Documents/FrescoPlay/date-api/node_modules/@sailshq/lodash/lib/index.js:3250:19)\r\n    at Hook.loadModules (/home/anasuya/Documents/FrescoPlay/date-api/node_modules/sails/lib/hooks/userconfig/index.js:41:27)\r\n    at Hook.wrapper [as loadModules] (/home/anasuya/Documents/FrescoPlay/date-api/node_modules/@sailshq/lodash/lib/index.js:3250:19)"},"comment":{"url":"https://api.github.com/repos/theo4u/sails-hook-swagger-generator/issues/comments/363661191","html_url":"https://github.com/theo4u/sails-hook-swagger-generator/issues/13#issuecomment-363661191","issue_url":"https://api.github.com/repos/theo4u/sails-hook-swagger-generator/issues/13","id":363661191,"user":{"login":"theo4u","id":10440327,"avatar_url":"https://avatars3.githubusercontent.com/u/10440327?v=4","gravatar_id":"","url":"https://api.github.com/users/theo4u","html_url":"https://github.com/theo4u","followers_url":"https://api.github.com/users/theo4u/followers","following_url":"https://api.github.com/users/theo4u/following{/other_user}","gists_url":"https://api.github.com/users/theo4u/gists{/gist_id}","starred_url":"https://api.github.com/users/theo4u/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theo4u/subscriptions","organizations_url":"https://api.github.com/users/theo4u/orgs","repos_url":"https://api.github.com/users/theo4u/repos","events_url":"https://api.github.com/users/theo4u/events{/privacy}","received_events_url":"https://api.github.com/users/theo4u/received_events","type":"User","site_admin":false},"created_at":"2018-02-07T05:25:42Z","updated_at":"2018-02-07T05:25:42Z","author_association":"OWNER","body":"Seen the error, in your `swaggergenerator.js` you added `swaggerJsonPath` to use`sails.config` which is the default path, if you want to stick with the default path no need for adding it, remove it from your `swaggergenerator.js`. If you want to change the folder, then you do something like this \r\n `swaggerJsonPath: \"./assets/swagger/swagger.json\"` --> using the absolute path relative to the project\r\n"}}
{"actor":{"display_login":"theo4u"}}