-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Using ng serve with --aot option causes constant invalidating and rebuilding #2418
Comments
I have the same issue. I don't know if it is related but it looks like the |
I just tried it on a branch new app ( The only thing I did do, was update the packages to their latest version - Angular 2.0.1, etc. I did get an "UNMET PEER DEPENDENCY" when I changed Typescript to the latest, release, version - 2.0.3:
|
Can you run ng build --prod --aot and give the output. For me it is doing a bit better, but whenever I am adding some styles inside my CSS files, it is giving ENOENT errors. There is something definitely wrong with the AoT Module. |
Here you go, FWIW:
|
I added a simple |
Adding styles to styles.css has no problem. The problem is adding a style in the xxx.component.css |
Well, I moved the h1 style from the styles.css to the app.component.css file and I still do not have the error. |
I wish I had my laptop with me. Basically this is what to reproduce: (on Windows 10):
|
Ah, you're on to something. Using my example, a file named:
was created in the /dist folder I'm going to guess it has to do with trying to create a file with a leading '.' character. Ok, then again... I just tried that - I have |
(damn, clicked the wrong button...) |
I had noticed that:
This makes me suspect that what we are looking at here is a super rough super early version of AOT support, still under development, not actually intended to work 100% yet. |
Ditto on the loop when using |
Here's what I'm seeing, as documented in #2560.
The The Recap:So what works: Do not add And do not use |
Heya, we appreciate the feedback on Some of the problems you've listed are known in beta.16 (like the endless rebuild loop), some are new (problems with |
@garysui @jtsom I'll track the @Meligy the output path issue should be solved with #2611 I'm closing this one because the original issue (contant rebuilding) is fixed in Please open new issues for the problems you are still experiencing. |
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. |
OS?
MacOS Sierra
Versions.
angular-cli: 1.0.0-beta.16
node: 6.7.0
os: darwin x64
Repro steps.
ng serve --aot
Initially builds, then goes into a constant Webpack INVALID rebuild VALID INVALID rebuild cycle.
The log given by the failure.
Mention any other details that might be useful.
The text was updated successfully, but these errors were encountered: