{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/20605","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/20605/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/20605/comments","events_url":"https://api.github.com/repos/angular/angular/issues/20605/events","html_url":"https://github.com/angular/angular/issues/20605","id":276330533,"number":20605,"title":"Locale files imports are not compatible with angular universal","user":{"login":"yosigolan","id":18391088,"avatar_url":"https://avatars0.githubusercontent.com/u/18391088?v=4","gravatar_id":"","url":"https://api.github.com/users/yosigolan","html_url":"https://github.com/yosigolan","followers_url":"https://api.github.com/users/yosigolan/followers","following_url":"https://api.github.com/users/yosigolan/following{/other_user}","gists_url":"https://api.github.com/users/yosigolan/gists{/gist_id}","starred_url":"https://api.github.com/users/yosigolan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosigolan/subscriptions","organizations_url":"https://api.github.com/users/yosigolan/orgs","repos_url":"https://api.github.com/users/yosigolan/repos","events_url":"https://api.github.com/users/yosigolan/events{/privacy}","received_events_url":"https://api.github.com/users/yosigolan/received_events","type":"User","site_admin":false},"labels":[{"id":251048427,"url":"https://api.github.com/repos/angular/angular/labels/comp:%20i18n","name":"comp: i18n","color":"c7def8","default":false},{"id":375497160,"url":"https://api.github.com/repos/angular/angular/labels/freq2:%20medium","name":"freq2: medium","color":"fbca04","default":false},{"id":375498203,"url":"https://api.github.com/repos/angular/angular/labels/severity3:%20broken","name":"severity3: broken","color":"0052cc","default":false},{"id":130606843,"url":"https://api.github.com/repos/angular/angular/labels/type:%20bug/fix","name":"type: bug/fix","color":"EEEEEE","default":false}],"state":"open","locked":false,"assignee":{"login":"ocombe","id":265378,"avatar_url":"https://avatars0.githubusercontent.com/u/265378?v=4","gravatar_id":"","url":"https://api.github.com/users/ocombe","html_url":"https://github.com/ocombe","followers_url":"https://api.github.com/users/ocombe/followers","following_url":"https://api.github.com/users/ocombe/following{/other_user}","gists_url":"https://api.github.com/users/ocombe/gists{/gist_id}","starred_url":"https://api.github.com/users/ocombe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocombe/subscriptions","organizations_url":"https://api.github.com/users/ocombe/orgs","repos_url":"https://api.github.com/users/ocombe/repos","events_url":"https://api.github.com/users/ocombe/events{/privacy}","received_events_url":"https://api.github.com/users/ocombe/received_events","type":"User","site_admin":false},"assignees":[{"login":"ocombe","id":265378,"avatar_url":"https://avatars0.githubusercontent.com/u/265378?v=4","gravatar_id":"","url":"https://api.github.com/users/ocombe","html_url":"https://github.com/ocombe","followers_url":"https://api.github.com/users/ocombe/followers","following_url":"https://api.github.com/users/ocombe/following{/other_user}","gists_url":"https://api.github.com/users/ocombe/gists{/gist_id}","starred_url":"https://api.github.com/users/ocombe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocombe/subscriptions","organizations_url":"https://api.github.com/users/ocombe/orgs","repos_url":"https://api.github.com/users/ocombe/repos","events_url":"https://api.github.com/users/ocombe/events{/privacy}","received_events_url":"https://api.github.com/users/ocombe/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/angular/angular/milestones/82","html_url":"https://github.com/angular/angular/milestone/82","labels_url":"https://api.github.com/repos/angular/angular/milestones/82/labels","id":3045967,"number":82,"title":"Backlog","description":"Milestone for triaged issues that have not yet been scheduled for resolution.","creator":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars3.githubusercontent.com/u/216296?v=4","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"open_issues":1535,"closed_issues":96,"state":"open","created_at":"2018-01-18T16:52:20Z","updated_at":"2018-04-14T10:22:08Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2017-11-23T10:46:31Z","updated_at":"2018-04-16T11:07:58Z","closed_at":null,"author_association":"NONE","body":"## I'm submitting a...\r\n<pre><code>\r\n[ ] Regression (a behavior that used to work and stopped working in a new release)\r\n[x] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->\r\n[ ] Feature request\r\n[ ] Documentation issue or request\r\n[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n</code></pre>\r\n\r\n## Current behavior\r\nwhen adding the locales imports for the new i18n framework like this (in the app.module):\r\n\r\nimport localeEn from '@angular/common/locales/en';     \r\nregisterLocaleData(localeEn);\r\n\r\nand compiling with universal server side rendering, an error appears when starting the node server:\r\n\r\nC:\\GitRepos\\WebApp\\node_modules\\@angular\\common\\locales\\en.js:10\r\nexport default [\r\n^^^^^^\r\n\r\nSyntaxError: Unexpected token export\r\n    at createScript (vm.js:80:10)\r\n    at Object.runInThisContext (vm.js:139:10)\r\n    at Module._compile (module.js:588:28)\r\n    at Object.Module._extensions..js (module.js:635:10)\r\n    at Module.load (module.js:545:32)\r\n    at tryModuleLoad (module.js:508:12)\r\n    at Function.Module._load (module.js:500:3)\r\n    at Module.require (module.js:568:17)\r\n    at require (internal/module.js:11:18)\r\n    at Object.oYeS (C:\\GitRepos\\WebApp\\dist\\en\\server\\main.bundle.js:1:1619104)\r\n\r\n\r\n## Expected behavior\r\nthe locales imports should support angular universal and no errors should appear.\r\n\r\n## Minimal reproduction of the problem with instructions\r\n1. clone this project: https://github.com/yosigolan/ng5-locale-universal-bug\r\n2. run \"npm install\"\r\n3. run \"npm run build-server\"\r\n4. run node server\r\n\r\n## Environment\r\n\r\n<pre><code>\r\nAngular version: ^5.0.0\r\nalso reproduces with the latest version\r\n\r\nFor Tooling issues:\r\n- Node version: 8.6.0\r\n- Platform:   Windows\r\n\r\nOthers:\r\nas a workaround i am adding the imports in the browser rendering module only.\r\n</code></pre>\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/381563284","html_url":"https://github.com/angular/angular/issues/20605#issuecomment-381563284","issue_url":"https://api.github.com/repos/angular/angular/issues/20605","id":381563284,"user":{"login":"hettiger","id":4583871,"avatar_url":"https://avatars1.githubusercontent.com/u/4583871?v=4","gravatar_id":"","url":"https://api.github.com/users/hettiger","html_url":"https://github.com/hettiger","followers_url":"https://api.github.com/users/hettiger/followers","following_url":"https://api.github.com/users/hettiger/following{/other_user}","gists_url":"https://api.github.com/users/hettiger/gists{/gist_id}","starred_url":"https://api.github.com/users/hettiger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hettiger/subscriptions","organizations_url":"https://api.github.com/users/hettiger/orgs","repos_url":"https://api.github.com/users/hettiger/repos","events_url":"https://api.github.com/users/hettiger/events{/privacy}","received_events_url":"https://api.github.com/users/hettiger/received_events","type":"User","site_admin":false},"created_at":"2018-04-16T11:07:57Z","updated_at":"2018-04-16T11:07:57Z","author_association":"NONE","body":"Any updates @ocombe about your discussion with @IgorMinar ?"}}
{"actor":{"display_login":"hettiger"}}