-
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
ng serve no longer works without AoT #26635
Comments
After more investigation: The "File is missing from the Typescript compilation" issue appear to only happen when saving a I also tested all versions of I am no longer sure if this is a regression or if it has always been there with the |
…pt compilation with JIT Before this update, removing the modified file entry from `typeScriptFileCache` when a file was saved but unmodified created an issue. The TypeScript compiler didn't re-emit the file using `emitNextAffectedFile` because the file hashes remained unchanged. Consequently, this led to missing files in the esbuild compilation process. In the current update, we no longer delete entries from typeScriptFileCache. This adjustment resolves the problem by ensuring the proper handling of file recompilation and prevents files from going missing during the esbuild compilation. Closes angular#26635
@alan-agius4 nice! I tried the following, and it looks like the npm i https://github.com/angular/angular-devkit-build-angular-builds#c0142b2a9a789b0716b6630c22f41cb7bbed793a --save-dev --force |
…pt compilation with JIT Before this update, removing the modified file entry from `typeScriptFileCache` when a file was saved but unmodified created an issue. The TypeScript compiler didn't re-emit the file using `emitNextAffectedFile` because the file hashes remained unchanged. Consequently, this led to missing files in the esbuild compilation process. In the current update, we no longer delete entries from typeScriptFileCache. This adjustment resolves the problem by ensuring the proper handling of file recompilation and prevents files from going missing during the esbuild compilation. Closes #26635
…pt compilation with JIT Before this update, removing the modified file entry from `typeScriptFileCache` when a file was saved but unmodified created an issue. The TypeScript compiler didn't re-emit the file using `emitNextAffectedFile` because the file hashes remained unchanged. Consequently, this led to missing files in the esbuild compilation process. In the current update, we no longer delete entries from typeScriptFileCache. This adjustment resolves the problem by ensuring the proper handling of file recompilation and prevents files from going missing during the esbuild compilation. Closes #26635 (cherry picked from commit 0f253a1)
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. |
Command
serve
Is this a regression?
The previous version in which this bug was not present was
16, might've worked in an earlier 17.0.x version
Description
When using
"aot": false
, there are two critical issues withng serve
..html
files do not seem to be watched, so changes do not trigger a rebuild/refresh..ts
files trigger a rebuild, but the build always fail (see error below). NOTE: Does not happen on every save, but can be reproduced consistently.The above means that
ng serve
has to be exited and re-run on every change, which makes it pretty much unusable.Minimal Reproduction
ng new myproject
cd myproject
"aot": false
to the angular.json builder options (projects.myproject.architect.build.options.aot
)ng serve
app.component.html
andapp.component.ts
Exception or Error
Your Environment
Anything else relevant?
This happens both with the
browser-eslint
and theapplication
builder.Related: #26379
The text was updated successfully, but these errors were encountered: