-
Notifications
You must be signed in to change notification settings - Fork 12k
ng build aot just stops, with no error (silent fail) #8895
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
I just wrote up an issue with this. (or seemingly related to this) The following is my error information: I'm submitting a...
Current behaviorCurrently, when I try to use
However, when I run
And more. It is clear to me that I am getting the proper errors from ngc, but the build is being silent on these errors when I use Expected behaviorBuilds from What is the motivation / use case for changing the behavior?This would allow you to be able to solve issues with AOT in order to build properly EnvironmentAngular CLI: 1.6.0 @angular/cdk: 5.0.0 |
@crutchcorn Seems not to be the same issue: At least, you got an error, i dont :( |
Finally found it ! see #8904 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Repro steps
I cant reproduce it on another repository (and sharing mine is not an option).
I tried:
Observed behavior
AOT build just terminates after 5 seconds WITH NO ERROR (instead of 22secs required to build without AOT).
No error message, nothing generated in /dist, node process finishes with code 0.
... nb:
ng build
works perfectly without AOT.Desired behavior
Well... I would expect it to build, or at least to yield some kind of error.
Mention any other details that might be useful (optional)
Further investigation yields (if it might be helpful):
It seems to be somehow related to SCSS, but the same SCSS was OK before my webpack+ng2 => cli+ng5 migration (seeabout my config
below)[edit] It turns out that if I comment out all style imports (i.e. only those that are read during the compilation begining), it still fails without having read any .css or .scss file.
Last file read from disk changes if I change the order of my SCSS imports, and seems always to be a *.json[edit] Last read file can be .json, .html ... i dont see any pattern :(
existsSync
on a non existing file with a 'catch all exceptions' debugger attached)... i'm a bit out of ideas, does anyone has any clue of what might happen ?
About my config
ng eject
to support pug/jade templates. But it is pretty simple, and works fine on other repos.The only other fancy things with my config i can think of is that i'm using "paths" in my
tsconfig.json
to reference another module in my repoThe text was updated successfully, but these errors were encountered: