{"action":"opened","issue":{"url":"https://api.github.com/repos/guzart/gulp-ng-constant/issues/40","repository_url":"https://api.github.com/repos/guzart/gulp-ng-constant","labels_url":"https://api.github.com/repos/guzart/gulp-ng-constant/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/guzart/gulp-ng-constant/issues/40/comments","events_url":"https://api.github.com/repos/guzart/gulp-ng-constant/issues/40/events","html_url":"https://github.com/guzart/gulp-ng-constant/issues/40","id":170109639,"number":40,"title":"Error after upgrading to 2.0.0-1","user":{"login":"rbatllet","id":3993987,"avatar_url":"https://avatars.githubusercontent.com/u/3993987?v=3","gravatar_id":"","url":"https://api.github.com/users/rbatllet","html_url":"https://github.com/rbatllet","followers_url":"https://api.github.com/users/rbatllet/followers","following_url":"https://api.github.com/users/rbatllet/following{/other_user}","gists_url":"https://api.github.com/users/rbatllet/gists{/gist_id}","starred_url":"https://api.github.com/users/rbatllet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbatllet/subscriptions","organizations_url":"https://api.github.com/users/rbatllet/orgs","repos_url":"https://api.github.com/users/rbatllet/repos","events_url":"https://api.github.com/users/rbatllet/events{/privacy}","received_events_url":"https://api.github.com/users/rbatllet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-09T08:31:21Z","updated_at":"2016-08-09T08:31:21Z","closed_at":null,"body":"The following error only happens in the new version:\r\n\r\n```\r\n[10:25:46] Starting 'config'...\r\n[10:25:46] 'config' errored after 17 ms\r\n[10:25:46] ReferenceError in plugin 'gulp-tslint-log'\r\nMessage:\r\n    wrapHeader is not defined\r\nDetails:\r\n    fileName: ngConstants.json\r\n```\r\nThe previous version (1.1.0) works fine!\r\n\r\nMy Gulp task:\r\n\r\n```\r\ngulp.task('config', () => {\r\n  const myConfig = require(`./${appConfig.app}/scripts/config/config.json`);\r\n  const envConfig = myConfig[environment];\r\n  return ngConstant({\r\n      constants: envConfig,\r\n      name: 'MyAngularApp',\r\n      deps: false,\r\n      stream: true\r\n    })\r\n    .pipe(rename('app-config.js'))\r\n    .pipe(gulp.dest(`${appConfig.app}/scripts/config`));\r\n});\r\n```\r\n"}}
{"actor":{"display_login":"rbatllet"}}