-
Notifications
You must be signed in to change notification settings - Fork 616
Description
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).
@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).
Here is part of the log when bundling the app:
meteor npm install --production >/dev/null
NODE_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
WARNING: The output directory is under your source tree.
Your generated files may get interpreted as source code!
Consider building into a different directory instead
meteor build ../output
@angular/compiler and @angular/compiler-cli must be installed for AOT compilation!
AOT compilation disabled!
Ignore this if you are using AngularJS 1.X
I'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.
The 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)
Can 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.