-
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
Browser does not refresh after code changed #4329
Comments
That's weird I just created a new project with 1.0.0-beta.28.3 and it is refreshing just fine. |
Yes. I just did a |
I double checked it already And I restarted my machine |
I can confirm. When editing the typescript it doesn't refresh. If you update the template, it refreshes. |
I just unistalled it and reinstall it so I'll go back to previous, have to do a workshop tomorrow and need cli :( |
Looks like the typescript isn't getting compiled. I edit the typescript (introduce a function) and adjusted the template so that it would refresh. The new function doesn't get called (when clicking on a button to trigger the method) after the page refresh. Instead get an error saying that the function doesn't exist. Stopping |
Same issue here. I just tried uninstalling/reinstalling everything and running ng update, no change. Still seeing old .ts code until I stop and restart |
Can you try |
Thx, that's it. |
@beeman - that worked for me too, thanks! |
I have the same issue with beta 29. This time it doesn't solve to install ngtools/webpack |
A late comment from a newbie. Using Angular 4.0.2, it seems that the 'rebuild on change' does not work if the project path contains '('. Potentially other legal characters could also have this impact. |
I am facing the same problem now. |
I have noticed this on VS2017 15.7.1 ,dotnet core 2.1 and Angular/Angular-CLI ^6.0.3 (I removed webpack from packages completely - The angular add new does not use it so I nuked it too based on the dotnet core 2 template based on angular 5 (not the dot net core 1 template based on angualr 4))
I realised it was serving an old build for some reason. Where does dotnet core serve build from? the /dist directory obviously. I think if something is in the dist folder then dotnet will NOT proxy to the CLI server. Make sure its clean |
@ppumkin I have this issue too. This needs to be reported to Microsoft. |
@ibraheemalkilanny Turning on the "Disable cache (while DevTools is open)" setting in the Chrome Developer Tools (F12 to open Dev Tools, then F1 to open settings page) resolved the issue for me. |
I was having the same issue, I resolved my issue by:
|
Hi, This workaround worked perfecte for me! |
I have this issue too. |
For me it's when I edit component styles (*.scss) that it won't refresh. |
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. |
angular-cli: 1.0.0-beta.28.3
node: 6.9.2
os: win32 x64
@angular/common: 2.4.5
@angular/compiler: 2.4.5
@angular/core: 2.4.5
@angular/forms: 2.4.5
@angular/http: 2.4.5
@angular/platform-browser: 2.4.5
@angular/platform-browser-dynamic: 2.4.5
@angular/router: 3.4.5
@angular/compiler-cli: 2.4.5
ng serve
code change
webpack: Compiling... Hash: 228604d16756d5a0fdd3 Time: 717ms chunk {0} polyfills.bundle.js, polyfills.bundle.map (polyfills) 222 kB {4} [initial] chunk {1} main.bundle.js, main.bundle.map (main) 3.97 kB {3} [initial] chunk {2} styles.bundle.js, styles.bundle.map (styles) 10 kB {4} [initial] chunk {3} vendor.bundle.js, vendor.bundle.map (vendor) 2.64 MB [initial] chunk {4} inline.bundle.js, inline.bundle.map (inline) 0 bytes [entry] webpack: Compiled successfully.
browser don't refresh. do not solve the problem
rerun
ng serve
=> change availableThe text was updated successfully, but these errors were encountered: