-
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
serve fails complaining app/app.component.ts is missing from TypeScript compilation #26284
Comments
Unfortunately, we are unable to reproduce the problem as described. |
In my project that error happens on a regular basis. Here's the link: https://github.com/rainerhahnekamp/angular-local-change-detection. Just make some syntax errors in the template, and the message will show up. Two things that might be of interest:
|
Anyone that did not see this happening isn't programming with v17. It happens all the time. At random, say, every 5-6 saves. Edit: Downgraded from node 20.9.0 to node 18 and see no more errors. |
I don't know why this was closed, the problem still exists. I am running Node v18.17.1 and Angular 17 which I just downloaded yesterday. I created a new project yesterday, it worked fine, went to bed. Got up, went to go keep working on the project, and got this error. After a while I gave up, decided to just create new project all over again, so I created a new project. (ng new test) and chose scss and no precompile support. When I go to run the project, I get the error again.
Here is my package.json:
I'm not sure how to fix this? |
@toddhd , I saw this in this link: I finally found a solution, and did open a ticket with the Angular team about it. I honestly can't tell you why it ever worked, or why it works for most people and not others, however, I can tell you what fixed it. Another user on the Angular support forums tried this fix as well and confirmed it worked for them as well. Go into the angular.json file, and add a "preserveSymlinks": true as indicated below: "architect": {
|
I'm also having the same issue. "preserveSymlinks": true did not help for me. I had it a few times the last few days, but today I have it with each save of a file. When I update template files it does not recognize any change at all. I just realized that when I save a ts file without changing anything the compiler complains. If I put an empty line into it, it fixes itself. But it's having every time. I'm on the current version of everything angular: 17.0.4 |
I'm facing the same issue. After updating Angular to version 17.0.4 and changing the
"preserveSymlinks": true didn't solve the problem For a few minutes after the update, it was working fine. I've just updated all the |
I've solved the problem in my case by removing the option
|
That helped, thanks. |
If you are still encountering issues with the latest version, please provide the full output of |
I've just upgraded to v17 and I had |
Hi @MasonVX, I am unable to replicate the problems with the steps provided using MacOS. Do you have any special characters in the path or some upper case characters? |
The path I created the app in: And as I said, the only thing I changed for the starter project is set aot to false: Edit: terminal is zsh |
Update: I also now tried a new starter project in ~/ called test. Same problem. I also tried bash instead of zsh, no change. nodejs is installed via nvm |
@MasonVX, I am still unable to replicate this when aot is disabled. {
"projects": {
"ng-new-test": {
"projectType": "application",
"root": "",
"sourceRoot": "src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/ng-new-test",
"aot": false,
|
Ok, I'm being honest, I have no idea what it could be. I even tried an update to npm v18.19.0 but it didn't help as well. I also deleted .angular and also node_modules. I mean I'm not the only one. I could try to debug it myself, if you can give me a hint where to look, but I guess I would have to setup a whole Angular CLI dev environment. |
i don't even have |
I don't understand whi is this closed why is this closed... The
|
Symlinks and Project Structure: preserveSymlinks: true: TypeScript Compilation Process: angular.json Configuration: |
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. |
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
Yes
Description
What I did so far:
npm i -g @angular/cli@latest
ng new ng-upskill-app
I can't reproduce this again 🙁
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: