-
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 (dev mode) doesn't serve updated file from assets directory #9669
Comments
Also, when files are copied into project (imported type defs) it doesn't trigger change mechanism. |
This appears to be a bug but we will need to look at a reproduction to find and fix the problem. Can you setup a minimal reproduction please? You can read here why this is needed. A good way to make a minimal reproduction is to create a new app via |
I can reproduce this on latest version To reproduce run |
I have been trying to find a solution for this and nothing for me it is:
|
Having exactly same problem with 6.2. After "automatic" reload I have to reload the app manually one more time to get the actual copy of the code. |
We have looked into this and it is related to one of our dependencies. I have created a PR at upstream to solve this issue. |
#12591 should fix this by updating the dependency. |
…ndency This fixes the issue that newly added files are not copied on serve Fixes #9669
…ndency This fixes the issue that newly added files are not copied on serve Fixes #9669
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. |
ng serve (dev mode) doesn't serve updated file from assets directory, it serves "version" that was first transmitted (caching problem?).
When file in assets directory is changed via external shell script (child tsconfig to generate javascript for web workers [tsc + browserify + uglify]), ng serve serves version of file that was transmitted on first request.
Server needs to be restarted for changes to pick-up.
Versions
Repro steps
run
ng serve
, change some javascript file inside assets directoryassets/workers/some.js
for example, using above mentioned toolsObserved behavior
ng serve - serves outdated js file which doesn't exist on storage/drive (caching?)
Desired behavior
To serve updated file from storage.
The text was updated successfully, but these errors were encountered: