{"action":"created","issue":{"url":"https://api.github.com/repos/Enngage/ngx-captcha/issues/5","repository_url":"https://api.github.com/repos/Enngage/ngx-captcha","labels_url":"https://api.github.com/repos/Enngage/ngx-captcha/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/Enngage/ngx-captcha/issues/5/comments","events_url":"https://api.github.com/repos/Enngage/ngx-captcha/issues/5/events","html_url":"https://github.com/Enngage/ngx-captcha/issues/5","id":326795403,"node_id":"MDU6SXNzdWUzMjY3OTU0MDM=","number":5,"title":"Fatal Error When Building Angular Application","user":{"login":"TaylorChristie","id":7576958,"node_id":"MDQ6VXNlcjc1NzY5NTg=","avatar_url":"https://avatars3.githubusercontent.com/u/7576958?v=4","gravatar_id":"","url":"https://api.github.com/users/TaylorChristie","html_url":"https://github.com/TaylorChristie","followers_url":"https://api.github.com/users/TaylorChristie/followers","following_url":"https://api.github.com/users/TaylorChristie/following{/other_user}","gists_url":"https://api.github.com/users/TaylorChristie/gists{/gist_id}","starred_url":"https://api.github.com/users/TaylorChristie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TaylorChristie/subscriptions","organizations_url":"https://api.github.com/users/TaylorChristie/orgs","repos_url":"https://api.github.com/users/TaylorChristie/repos","events_url":"https://api.github.com/users/TaylorChristie/events{/privacy}","received_events_url":"https://api.github.com/users/TaylorChristie/received_events","type":"User","site_admin":false},"labels":[{"id":952407022,"node_id":"MDU6TGFiZWw5NTI0MDcwMjI=","url":"https://api.github.com/repos/Enngage/ngx-captcha/labels/repro%20required","name":"repro required","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":{"login":"Enngage","id":7137351,"node_id":"MDQ6VXNlcjcxMzczNTE=","avatar_url":"https://avatars0.githubusercontent.com/u/7137351?v=4","gravatar_id":"","url":"https://api.github.com/users/Enngage","html_url":"https://github.com/Enngage","followers_url":"https://api.github.com/users/Enngage/followers","following_url":"https://api.github.com/users/Enngage/following{/other_user}","gists_url":"https://api.github.com/users/Enngage/gists{/gist_id}","starred_url":"https://api.github.com/users/Enngage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Enngage/subscriptions","organizations_url":"https://api.github.com/users/Enngage/orgs","repos_url":"https://api.github.com/users/Enngage/repos","events_url":"https://api.github.com/users/Enngage/events{/privacy}","received_events_url":"https://api.github.com/users/Enngage/received_events","type":"User","site_admin":false},"assignees":[{"login":"Enngage","id":7137351,"node_id":"MDQ6VXNlcjcxMzczNTE=","avatar_url":"https://avatars0.githubusercontent.com/u/7137351?v=4","gravatar_id":"","url":"https://api.github.com/users/Enngage","html_url":"https://github.com/Enngage","followers_url":"https://api.github.com/users/Enngage/followers","following_url":"https://api.github.com/users/Enngage/following{/other_user}","gists_url":"https://api.github.com/users/Enngage/gists{/gist_id}","starred_url":"https://api.github.com/users/Enngage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Enngage/subscriptions","organizations_url":"https://api.github.com/users/Enngage/orgs","repos_url":"https://api.github.com/users/Enngage/repos","events_url":"https://api.github.com/users/Enngage/events{/privacy}","received_events_url":"https://api.github.com/users/Enngage/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2018-05-27T07:47:40Z","updated_at":"2018-06-05T15:35:27Z","closed_at":null,"author_association":"NONE","body":"Im using angular 6.0.0, and the recaptcha displays fine when in development mode, however after building the application I get the following error in my browser console, and I cannot access the application:\r\n\r\n```\r\nERROR Error: Uncaught (in promise): TypeError: Cannot read property 'ReCaptcha2' of undefined\r\nTypeError: Cannot read property 'ReCaptcha2' of undefined\r\n    at new n (main.133800a16123fd74e29c.js:1)\r\n    at wa (main.133800a16123fd74e29c.js:1)\r\n    at ba (main.133800a16123fd74e29c.js:1)\r\n    at eu (main.133800a16123fd74e29c.js:1)\r\n    at du (main.133800a16123fd74e29c.js:1)\r\n    at lu (main.133800a16123fd74e29c.js:1)\r\n    at eu (main.133800a16123fd74e29c.js:1)\r\n    at Ka (main.133800a16123fd74e29c.js:1)\r\n    at Object.mu [as createRootView] (main.133800a16123fd74e29c.js:1)\r\n    at n.create (main.133800a16123fd74e29c.js:1)\r\n    at new n (main.133800a16123fd74e29c.js:1)\r\n    at wa (main.133800a16123fd74e29c.js:1)\r\n    at ba (main.133800a16123fd74e29c.js:1)\r\n    at eu (main.133800a16123fd74e29c.js:1)\r\n    at du (main.133800a16123fd74e29c.js:1)\r\n    at lu (main.133800a16123fd74e29c.js:1)\r\n    at eu (main.133800a16123fd74e29c.js:1)\r\n    at Ka (main.133800a16123fd74e29c.js:1)\r\n    at Object.mu [as createRootView] (main.133800a16123fd74e29c.js:1)\r\n    at n.create (main.133800a16123fd74e29c.js:1)\r\n    at j (polyfills.e47a7446871b5070479b.js:1)\r\n    at j (polyfills.e47a7446871b5070479b.js:1)\r\n    at polyfills.e47a7446871b5070479b.js:1\r\n    at e.invokeTask (polyfills.e47a7446871b5070479b.js:1)\r\n    at Object.onInvokeTask (main.133800a16123fd74e29c.js:1)\r\n    at e.invokeTask (polyfills.e47a7446871b5070479b.js:1)\r\n    at t.runTask (polyfills.e47a7446871b5070479b.js:1)\r\n    at d (polyfills.e47a7446871b5070479b.js:1)\r\nnn @ main.133800a16123fd74e29c.js:1\r\ne.handleError @ main.133800a16123fd74e29c.js:1\r\nnext @ main.133800a16123fd74e29c.js:1\r\nn.object.o @ main.133800a16123fd74e29c.js:1\r\nn.__tryOrUnsub @ main.133800a16123fd74e29c.js:1\r\nn.next @ main.133800a16123fd74e29c.js:1\r\nn._next @ main.133800a16123fd74e29c.js:1\r\nn.next @ main.133800a16123fd74e29c.js:1\r\nn.next @ main.133800a16123fd74e29c.js:1\r\nn.emit @ main.133800a16123fd74e29c.js:1\r\n(anonymous) @ main.133800a16123fd74e29c.js:1\r\ne.invoke @ polyfills.e47a7446871b5070479b.js:1\r\nt.run @ polyfills.e47a7446871b5070479b.js:1\r\ne.runOutsideAngular @ main.133800a16123fd74e29c.js:1\r\nonHandleError @ main.133800a16123fd74e29c.js:1\r\ne.handleError @ polyfills.e47a7446871b5070479b.js:1\r\nt.runGuarded @ polyfills.e47a7446871b5070479b.js:1\r\ne @ polyfills.e47a7446871b5070479b.js:1\r\nn.microtaskDrainDone @ polyfills.e47a7446871b5070479b.js:1\r\nd @ polyfills.e47a7446871b5070479b.js:1\r\nPromise.then (async)\r\nv @ polyfills.e47a7446871b5070479b.js:1\r\ne.scheduleTask @ polyfills.e47a7446871b5070479b.js:1\r\nonScheduleTask @ polyfills.e47a7446871b5070479b.js:1\r\ne.scheduleTask @ polyfills.e47a7446871b5070479b.js:1\r\nt.scheduleTask @ polyfills.e47a7446871b5070479b.js:1\r\nt.scheduleMicroTask @ polyfills.e47a7446871b5070479b.js:1\r\nz @ polyfills.e47a7446871b5070479b.js:1\r\ne.then @ polyfills.e47a7446871b5070479b.js:1\r\ne.appInitializer @ main.133800a16123fd74e29c.js:1\r\ne.runInitializers @ main.133800a16123fd74e29c.js:1\r\n(anonymous) @ main.133800a16123fd74e29c.js:1\r\n(anonymous) @ main.133800a16123fd74e29c.js:1\r\ne.invoke @ polyfills.e47a7446871b5070479b.js:1\r\nonInvoke @ main.133800a16123fd74e29c.js:1\r\ne.invoke @ polyfills.e47a7446871b5070479b.js:1\r\nt.run @ polyfills.e47a7446871b5070479b.js:1\r\ne.run @ main.133800a16123fd74e29c.js:1\r\ne.bootstrapModuleFactory @ main.133800a16123fd74e29c.js:1\r\nzUnb @ main.133800a16123fd74e29c.js:1\r\np @ runtime.6afe30102d8fe7337431.js:1\r\n7 @ main.133800a16123fd74e29c.js:1\r\np @ runtime.6afe30102d8fe7337431.js:1\r\nn @ runtime.6afe30102d8fe7337431.js:1\r\ne @ runtime.6afe30102d8fe7337431.js:1\r\n(anonymous) @ main.133800a16123fd74e29c.js:1\r\n```\r\n\r\n\r\nI've updated the package to 2.1.0. The strange thing is that it works fine not built, it only runs into issues when building."},"comment":{"url":"https://api.github.com/repos/Enngage/ngx-captcha/issues/comments/394756132","html_url":"https://github.com/Enngage/ngx-captcha/issues/5#issuecomment-394756132","issue_url":"https://api.github.com/repos/Enngage/ngx-captcha/issues/5","id":394756132,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDc1NjEzMg==","user":{"login":"Bidthedog","id":1425696,"node_id":"MDQ6VXNlcjE0MjU2OTY=","avatar_url":"https://avatars1.githubusercontent.com/u/1425696?v=4","gravatar_id":"","url":"https://api.github.com/users/Bidthedog","html_url":"https://github.com/Bidthedog","followers_url":"https://api.github.com/users/Bidthedog/followers","following_url":"https://api.github.com/users/Bidthedog/following{/other_user}","gists_url":"https://api.github.com/users/Bidthedog/gists{/gist_id}","starred_url":"https://api.github.com/users/Bidthedog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bidthedog/subscriptions","organizations_url":"https://api.github.com/users/Bidthedog/orgs","repos_url":"https://api.github.com/users/Bidthedog/repos","events_url":"https://api.github.com/users/Bidthedog/events{/privacy}","received_events_url":"https://api.github.com/users/Bidthedog/received_events","type":"User","site_admin":false},"created_at":"2018-06-05T15:35:27Z","updated_at":"2018-06-05T15:35:27Z","author_association":"NONE","body":"Just been fiddling with the angular cli settings. Setting `\"buildOptimizer\": false` sorts the issue - but that's not ideal. Latest version of everything - here's my `npm list --depth=0` output:\r\n\r\n```\r\n$ npm list --depth=0\r\n+-- @angular-devkit/build-angular@0.6.0\r\n+-- @angular/animations@6.0.3\r\n+-- @angular/cli@6.0.7\r\n+-- @angular/common@6.0.3\r\n+-- @angular/compiler@6.0.3\r\n+-- @angular/compiler-cli@6.0.3\r\n+-- @angular/core@6.0.3\r\n+-- @angular/forms@6.0.3\r\n+-- @angular/http@6.0.3\r\n+-- @angular/language-service@6.0.3\r\n+-- @angular/platform-browser@6.0.3\r\n+-- @angular/platform-browser-dynamic@6.0.3\r\n+-- @angular/router@6.0.3\r\n+-- @ng-bootstrap/ng-bootstrap@2.0.0\r\n+-- @types/jasmine@2.8.7\r\n+-- @types/jasminewd2@2.0.3\r\n+-- @types/node@6.0.108\r\n+-- bootstrap@4.1.1\r\n+-- chokidar-cli@1.2.0\r\n+-- codelyzer@4.3.0\r\n+-- core-js@2.5.6\r\n+-- jasmine-core@2.8.0\r\n+-- jasmine-spec-reporter@4.2.1\r\n+-- jquery@3.3.1\r\n+-- karma@2.0.2\r\n+-- karma-chrome-launcher@2.2.0\r\n+-- karma-coverage-istanbul-reporter@1.4.2\r\n+-- karma-jasmine@1.1.2\r\n+-- karma-jasmine-html-reporter@0.2.2\r\n+-- moment@2.22.2\r\n+-- ngx-captcha@2.2.1\r\n+-- popper.js@1.14.3\r\n+-- protractor@5.1.2\r\n+-- rxjs@6.2.0\r\n+-- ts-node@4.1.0\r\n+-- tslint@5.9.1\r\n+-- typescript@2.7.2\r\n`-- zone.js@0.8.26\r\n\r\nnpm ERR! missing: mkdirp@0.5.1, required by node-pre-gyp@0.9.1\r\nnpm ERR! missing: minimist@0.0.8, required by mkdirp@0.5.1\r\nnpm ERR! missing: minimatch@3.0.4, required by ignore-walk@3.0.1\r\nnpm ERR! missing: brace-expansion@1.1.11, required by minimatch@3.0.4\r\nnpm ERR! missing: balanced-match@1.0.0, required by brace-expansion@1.1.11\r\nnpm ERR! missing: concat-map@0.0.1, required by brace-expansion@1.1.11\r\nnpm ERR! missing: console-control-strings@1.1.0, required by npmlog@4.1.2\r\nnpm ERR! missing: inherits@2.0.3, required by readable-stream@2.3.6\r\nnpm ERR! missing: safe-buffer@5.1.1, required by readable-stream@2.3.6\r\nnpm ERR! missing: safe-buffer@5.1.1, required by string_decoder@1.1.1\r\nnpm ERR! missing: console-control-strings@1.1.0, required by gauge@2.7.4\r\nnpm ERR! missing: string-width@1.0.2, required by gauge@2.7.4\r\nnpm ERR! missing: strip-ansi@3.0.1, required by gauge@2.7.4\r\nnpm ERR! missing: code-point-at@1.1.0, required by string-width@1.0.2\r\nnpm ERR! missing: is-fullwidth-code-point@1.0.0, required by string-width@1.0.2\r\nnpm ERR! missing: strip-ansi@3.0.1, required by string-width@1.0.2\r\nnpm ERR! missing: number-is-nan@1.0.1, required by is-fullwidth-code-point@1.0.0\r\nnpm ERR! missing: ansi-regex@2.1.1, required by strip-ansi@3.0.1\r\nnpm ERR! missing: string-width@1.0.2, required by wide-align@1.1.2\r\nnpm ERR! missing: inherits@2.0.3, required by glob@7.1.2\r\nnpm ERR! missing: minimatch@3.0.4, required by glob@7.1.2\r\nnpm ERR! missing: once@1.4.0, required by glob@7.1.2\r\nnpm ERR! missing: once@1.4.0, required by inflight@1.0.6\r\nnpm ERR! missing: wrappy@1.0.2, required by inflight@1.0.6\r\nnpm ERR! missing: wrappy@1.0.2, required by once@1.4.0\r\nnpm ERR! missing: minipass@2.2.4, required by tar@4.4.1\r\nnpm ERR! missing: mkdirp@0.5.1, required by tar@4.4.1\r\nnpm ERR! missing: safe-buffer@5.1.1, required by tar@4.4.1\r\nnpm ERR! missing: yallist@3.0.2, required by tar@4.4.1\r\nnpm ERR! missing: minipass@2.2.4, required by fs-minipass@1.2.5\r\nnpm ERR! missing: safe-buffer@5.1.1, required by minipass@2.2.4\r\nnpm ERR! missing: yallist@3.0.2, required by minipass@2.2.4\r\nnpm ERR! missing: minipass@2.2.4, required by minizlib@1.1.0\r\n```\r\n"}}
{"actor":{"display_login":"Bidthedog"}}