{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/2163","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/2163/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/2163/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/2163/events","html_url":"https://github.com/angular/angular-cli/issues/2163","id":177355825,"number":2163,"title":"App not working in production mode using ng build --prod","user":{"login":"theunreal","id":6171883,"avatar_url":"https://avatars.githubusercontent.com/u/6171883?v=3","gravatar_id":"","url":"https://api.github.com/users/theunreal","html_url":"https://github.com/theunreal","followers_url":"https://api.github.com/users/theunreal/followers","following_url":"https://api.github.com/users/theunreal/following{/other_user}","gists_url":"https://api.github.com/users/theunreal/gists{/gist_id}","starred_url":"https://api.github.com/users/theunreal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theunreal/subscriptions","organizations_url":"https://api.github.com/users/theunreal/orgs","repos_url":"https://api.github.com/users/theunreal/repos","events_url":"https://api.github.com/users/theunreal/events{/privacy}","received_events_url":"https://api.github.com/users/theunreal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-16T06:47:00Z","updated_at":"2016-09-16T09:09:37Z","closed_at":null,"body":"> Please provide us with the following information:\r\n> ---------------------------------------------------------------\r\n\r\n1. OS?  Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)\r\nBuild on: Windows 10\r\nRunning on: Linux shared hosting\r\n\r\n2. Versions. Please run `ng --version`. If there's nothing outputted, please run\r\nin a Terminal: `node --version` and paste the result here:\r\n\r\nng --version\r\nangular-cli: 1.0.0-beta.14\r\nnode: 6.5.0\r\nos: win32 x64\r\n\r\n3 + 4. Repro steps. Was this an app that wasn't created using the CLI? What change did you\r\n   do on your code? etc. \r\n\r\nI created an Angular 2 project using Angular 2 CLI and used ng build --prod command and got no errors.\r\n\r\nWhen I upload the dist folder into my website, I get the following error when the app loads:\r\n\r\nhttp://i.stack.imgur.com/qEEEU.png\r\n\r\n```\r\nUncaught TypeError: this._input.charCodeAt is not a function_Tokenizer._advance @ main .688167 c….bundle.js: 1716 _Tokenizer @ main .688167 c….bundle.js: 1716 tokenize @ main .688167 c….bundle.js: 1709 Parser.parse @ main .688167 c….bundle.js: 219 HtmlParser.parse @ main .688167 c….bundle.js: 380 DirectiveNormalizer.normalizeLoadedTemplate @ main .688167 c….bundle.js: 598 DirectiveNormalizer.normalizeTemplateSync @ main .688167 c….bundle.js: 598 DirectiveNormalizer.normalizeDirective @ main .688167 c….bundle.js: 598 RuntimeCompiler._createCompiledTemplate @ main .688167 c….bundle.js: 1090(anonymous\r\nfunction) @ main .688167 c….bundle.js: 1090(anonymous\r\nfunction) @ main .688167 c….bundle.js: 1090 RuntimeCompiler._compileComponents @ main .688167 c….bundle.js: 1090 RuntimeCompiler._compileModuleAndComponents @ main .688167 c….bundle.js: 1090 RuntimeCompiler.compileModuleAsync @ main .688167 c….bundle.js: 1090 PlatformRef_._bootstrapModuleWithZone @ main .688167 c….bundle.js: 717 PlatformRef_.bootstrapModule @ main .688167 c….bundle.js: 717(anonymous\r\nfunction) @ main .688167 c….bundle.js: 1509 __webpack_require__ @ inline.js: 1(anonymous\r\nfunction) @ main .688167 c….bundle.js: 2131 __webpack_require__ @ inline.js: 1 window.webpackJsonp @ inline.js: 1(anonymous\r\nfunction) @ main .688167 c….bundle.js: 1\r\n```\r\nI'm using the latest Angular 2 CLI with webpack and Angular 2 RC.7\r\n\r\nWhat could have gone wrong?\r\n\r\nThe this._input.charCodeAt is only used in the angular compiler folder as below: enter image description here\r\n\r\nhttp://i.stack.imgur.com/XSoZH.png\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/247553960","html_url":"https://github.com/angular/angular-cli/issues/2163#issuecomment-247553960","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/2163","id":247553960,"user":{"login":"vapits","id":8594758,"avatar_url":"https://avatars.githubusercontent.com/u/8594758?v=3","gravatar_id":"","url":"https://api.github.com/users/vapits","html_url":"https://github.com/vapits","followers_url":"https://api.github.com/users/vapits/followers","following_url":"https://api.github.com/users/vapits/following{/other_user}","gists_url":"https://api.github.com/users/vapits/gists{/gist_id}","starred_url":"https://api.github.com/users/vapits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vapits/subscriptions","organizations_url":"https://api.github.com/users/vapits/orgs","repos_url":"https://api.github.com/users/vapits/repos","events_url":"https://api.github.com/users/vapits/events{/privacy}","received_events_url":"https://api.github.com/users/vapits/received_events","type":"User","site_admin":false},"created_at":"2016-09-16T09:09:37Z","updated_at":"2016-09-16T09:09:37Z","body":"Same issue here but with this versions:\r\n```\r\nangular-cli: 1.0.0-beta.11-webpack.8\r\nnode: 5.11.0\r\nos: darwin x64\r\n```"}}
{"actor":{"display_login":"vapits"}}