{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular-cli/issues/3632","repository_url":"https://api.github.com/repos/angular/angular-cli","labels_url":"https://api.github.com/repos/angular/angular-cli/issues/3632/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular-cli/issues/3632/comments","events_url":"https://api.github.com/repos/angular/angular-cli/issues/3632/events","html_url":"https://github.com/angular/angular-cli/issues/3632","id":196439474,"number":3632,"title":"angular cli beta.16 doesn't work  after upgrading to beta 22 and returning to beta.16","user":{"login":"khaledbouguerra","id":17521658,"avatar_url":"https://avatars.githubusercontent.com/u/17521658?v=3","gravatar_id":"","url":"https://api.github.com/users/khaledbouguerra","html_url":"https://github.com/khaledbouguerra","followers_url":"https://api.github.com/users/khaledbouguerra/followers","following_url":"https://api.github.com/users/khaledbouguerra/following{/other_user}","gists_url":"https://api.github.com/users/khaledbouguerra/gists{/gist_id}","starred_url":"https://api.github.com/users/khaledbouguerra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khaledbouguerra/subscriptions","organizations_url":"https://api.github.com/users/khaledbouguerra/orgs","repos_url":"https://api.github.com/users/khaledbouguerra/repos","events_url":"https://api.github.com/users/khaledbouguerra/events{/privacy}","received_events_url":"https://api.github.com/users/khaledbouguerra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-19T15:22:08Z","updated_at":"2016-12-19T16:18:39Z","closed_at":null,"body":"I have upgreded angular cli to beta.22 to test aot , and since it doesn't work yet I desided to return back to beta.16 and complete my project util aot becomes available, and the probelm is that  beta.16 also doesn't work any more here is errors I get :\r\n **ng new :** \r\nfs.js:549\r\n  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);\r\n                 ^\r\n\r\nTypeError: path must be a string\r\n    at TypeError (native)\r\n    at Object.fs.openSync (fs.js:549:18)\r\n    at Object.fs.readFileSync (fs.js:397:15)\r\n    at Function.Version.fromProject (C:\\Users\\khaled_bo\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\upgrade\\version.js:87:31)\r\n    at Function.Version.isPreWebpack (C:\\Users\\khaled_bo\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\upgrade\\version.js:111:31)\r\n    at Function.Version.assertPostWebpackVersion (C:\\Users\\khaled_bo\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\upgrade\\version.js:97:18)\r\n    at C:\\Users\\khaled_bo\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\bin\\ng:25:15\r\n    at C:\\Users\\khaled_bo\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\node_modules\\resolve\\lib\\async.js:45:21\r\n    at ondir (C:\\Users\\khaled_bo\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\node_modules\\resolve\\lib\\async.js:188:31)\r\n    at C:\\Users\\khaled_bo\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\node_modules\\resolve\\lib\\async.js:154:39\r\n\r\n**ng --version** : \r\nfs.js:549\r\n  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);\r\n                 ^\r\n\r\nTypeError: path must be a string\r\n    at TypeError (native)\r\n    at Object.fs.openSync (fs.js:549:18)\r\n    at Object.fs.readFileSync (fs.js:397:15)\r\n    at Function.Version.fromProject (C:\\Users\\khaled_bo\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\upgrade\\version.js:87:31)\r\n    at Function.Version.isPreWebpack (C:\\Users\\khaled_bo\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\upgrade\\version.js:111:31)\r\n    at Function.Version.assertPostWebpackVersion (C:\\Users\\khaled_bo\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\upgrade\\version.js:97:18)\r\n    at C:\\Users\\khaled_bo\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\bin\\ng:25:15\r\n    at C:\\Users\\khaled_bo\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\node_modules\\resolve\\lib\\async.js:45:21\r\n    at ondir (C:\\Users\\khaled_bo\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\node_modules\\resolve\\lib\\async.js:188:31)\r\n    at C:\\Users\\khaled_bo\\AppData\\Roaming\\npm\\node_modules\\angular-cli\\node_modules\\resolve\\lib\\async.js:154:39\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular-cli/issues/comments/268006394","html_url":"https://github.com/angular/angular-cli/issues/3632#issuecomment-268006394","issue_url":"https://api.github.com/repos/angular/angular-cli/issues/3632","id":268006394,"user":{"login":"gelliott181","id":3580685,"avatar_url":"https://avatars.githubusercontent.com/u/3580685?v=3","gravatar_id":"","url":"https://api.github.com/users/gelliott181","html_url":"https://github.com/gelliott181","followers_url":"https://api.github.com/users/gelliott181/followers","following_url":"https://api.github.com/users/gelliott181/following{/other_user}","gists_url":"https://api.github.com/users/gelliott181/gists{/gist_id}","starred_url":"https://api.github.com/users/gelliott181/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gelliott181/subscriptions","organizations_url":"https://api.github.com/users/gelliott181/orgs","repos_url":"https://api.github.com/users/gelliott181/repos","events_url":"https://api.github.com/users/gelliott181/events{/privacy}","received_events_url":"https://api.github.com/users/gelliott181/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T16:18:39Z","updated_at":"2016-12-19T16:18:39Z","body":"I don't believe downgrading your CLI is supported or possible, especially that many versions at once. \r\n\r\nWhat you should do is move to beta-22 and fix your app's issues with AoT because it works just fine (Except custom decorators for the moment). Even if you don't want to use AoT the new beta will continue to work with JIT compilation. AoT usually doesn't work because your code isn't able to be analyzed properly. If this is the case the JiT compiler may never see an issue if the code isn't run, or it may guess correctly and you never notice, but that doesn't mean you're code is \"correct\" to the AoT compiler.\r\n\r\nIt took me about two hours to move  from beta-16 to beta-20.4. I had modules that weren't resolving promises in just the right way, so after going over each service with a fine tooth comb I was able to get AoT working. It really just takes a little diligence. The compile time is way down in beta-22 even compared to beta-20.4, and AoT dev mode is many times lighter and faster than JiT with `--prod`."}}
{"actor":{"display_login":"gelliott181"}}