-
Notifications
You must be signed in to change notification settings - Fork 618
AOT compilation disabled! when bundling meteor app for production #1934
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
those two packages should be installed globally in the machine running the build
|
@pmcochrane |
How running with AOT in windows 10?
|
@aulrahman Just run meteor --production |
I'm witnessing a resurgence of something that has the same symptoms as Urigo#1934, yet I followed all the instructions there. I assume that the to-do item of Urigo#1934 (comment) fell through the cracks.
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:
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.
The text was updated successfully, but these errors were encountered: