{"action":"opened","issue":{"url":"https://api.github.com/repos/Urigo/angular-meteor/issues/1934","repository_url":"https://api.github.com/repos/Urigo/angular-meteor","labels_url":"https://api.github.com/repos/Urigo/angular-meteor/issues/1934/labels{/name}","comments_url":"https://api.github.com/repos/Urigo/angular-meteor/issues/1934/comments","events_url":"https://api.github.com/repos/Urigo/angular-meteor/issues/1934/events","html_url":"https://github.com/Urigo/angular-meteor/issues/1934","id":339396418,"node_id":"MDU6SXNzdWUzMzkzOTY0MTg=","number":1934,"title":"AOT compilation disabled! when bundling meteor app for production","user":{"login":"pmcochrane","id":7922620,"node_id":"MDQ6VXNlcjc5MjI2MjA=","avatar_url":"https://avatars0.githubusercontent.com/u/7922620?v=4","gravatar_id":"","url":"https://api.github.com/users/pmcochrane","html_url":"https://github.com/pmcochrane","followers_url":"https://api.github.com/users/pmcochrane/followers","following_url":"https://api.github.com/users/pmcochrane/following{/other_user}","gists_url":"https://api.github.com/users/pmcochrane/gists{/gist_id}","starred_url":"https://api.github.com/users/pmcochrane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmcochrane/subscriptions","organizations_url":"https://api.github.com/users/pmcochrane/orgs","repos_url":"https://api.github.com/users/pmcochrane/repos","events_url":"https://api.github.com/users/pmcochrane/events{/privacy}","received_events_url":"https://api.github.com/users/pmcochrane/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-09T10:40:39Z","updated_at":"2018-07-09T10:40:39Z","closed_at":null,"author_association":"NONE","body":"I am getting a similar message to #1922 saying that AOT is disabled when I am trying to package up my meteor app for production. I do not use the angular CLI and it is not installed (installing this globally seems to make no difference). \r\n\r\n@angular/compiler-cli is a dev dependecy whereas  @angular/compiler is a dependency in my package.json (which is the same as the example app). \r\n\r\nHere is part of the log when bundling the app:\r\n```\r\nmeteor npm install --production >/dev/null\r\n\t\r\nNODE_OPTIONS=--max_old_space_size=4096 ROOT_URL=http://localhost:/ MAIL_URL=smtp://localhost:25 PORT=8400 AOT=1 meteor build --debug .dockerimage/ --directory --architecture os.linux.x86_64 --mobile-settings ./server/settings/dev.testing.json\r\n\r\nWARNING: The output directory is under your source tree.\r\n         Your generated files may get interpreted as source code!\r\n         Consider building into a different directory instead\r\n         meteor build ../output\r\n\r\n@angular/compiler and @angular/compiler-cli must be installed for AOT compilation!\r\nAOT compilation disabled!\r\nIgnore this if you are using AngularJS 1.X\r\n```\r\nI've tried several times to get something installed that the compiler is happy with but AOT will not enable. I have forced @angular/compiler-cli to install after the install --production command. I have listed the installed npm's from within the deploy script and both of the mentioned npms are actually installed but the error message persists. \r\n\r\nThe actual error message is swallowed up in plugin/register.ts so it doesn't really tell you what the problem is. I debugged this by adding a console.error line to write out the error and it was complaining that typescript was not installed. Typescript is a dev dependency in my app (as well as installed globally)\r\n\r\nCan you please update the error message to indicate that typescript is a requirement for AOT as well. It would also be useful if the actual error was printed to the console to assist in debugging any future issues.\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"pmcochrane"}}