-
Notifications
You must be signed in to change notification settings - Fork 12k
Not compiling/reading files correctly #5634
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
Heya, does this only happen on interfaces? |
@filipesilva it happens for classes aswell. Renaming a class doesn't register unless i restart the CLI. |
Same happens to me with ng test (4.0.0-rc.5) |
@hassanasad I was not able to replicate it on classes. But I can confirm it only happens in the case of interfaces so seems to be an issue with interfaces. On running
Changing
|
@sumitarora that is weird - its same for me on classes and interfaces both. Perhaps might be because i have both in the same file which i am testing with? |
@filipesilva, @sumitarora Ah - it happens for classes as well IF the file contains an interface. For instance:
|
I'm having the same issues. I previously had the issues in beta 30, but got around it by downgrading @ngtools/webpack to version 1.2.4 Changes to html files will be reflected in the browser after rebundling. Changes to .ts files seem to trigger a rebundle, however do not get reflected in the browser until a new @angular/cli: 1.0.0 "@angular/cli": "1.0.0", |
I'm having this issue with custom typings, even when it's not in separate files. In a fresh install ([email protected], [email protected], typescript@~2.2.0), all I've changed is
This will pass on the first run, and on all subsequent runs throws error:
If anyone has a workaround other than |
+1 |
Same issues. "@angular/cli": "1.4.1" |
Still seeing this in "@angular/cli": "1.4.2" |
still in "@angular/cli": "1.4.5", |
+1 I have the same issue with class based typing's and the class doesn't contain any interfaces. |
Ok, I've changed all the classes to interfaces, seems to be working now. Still using older version of cli @angular/cli: 1.2.6 |
Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version. If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. |
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.
@angular/cli: 1.0.0
node: 7.7.4
os: darwin x64
@angular/common: 4.0.0
@angular/compiler: 4.0.0
@angular/core: 4.0.0
@angular/forms: 4.0.0
@angular/http: 4.0.0
@angular/platform-browser: 4.0.0
@angular/platform-browser-dynamic: 4.0.0
@angular/router: 4.0.0
@angular/cli: 1.0.0
@angular/compiler-cli: 4.0.0
When i modify and save my files, i see Angular-cli generating the chunks again - However its not reading the files content and is still giving errors. I have to exit and re-run
ng serve
before it stops giving errors.For instance, i have an interface:
Which i renamed to SignupInterface but the compiler is still giving error:
After exiting and re-running
ng serve
the problem gets fixed but its really annoying having to change properties/class/interface names and then re-running compilerThe text was updated successfully, but these errors were encountered: