Ng serve --watch must be stopped then started again when updating JSON files #12964
Labels
area: ngtools/webpack
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
Bug Report or Feature Request (mark with an
x
)Command (mark with an
x
)Versions
Node v10.13.0
npm v6.4.1
Angular CLI: 7.0.4
Angular: 7.0.3
Windows 10
Repro steps
I added the argument ""resolveJsonModule": true" to the tsconfig.ts file to allow JSON to come into the project.
Import * as data from JSON file (stored in the app folder of angular project)
console.log(data)
ng serve --watch
change the JSON file at all and make a change to one of the angular files
console.log(data) will return the same information as before.
Exit ng serve --watch
ng serve --watch
Works just as expected, returns the data properly.
The log given by the failure
No log given, just a problem with the JSON not updating whatsoever.
Desired functionality
Hopefully, the JSON will be able to be updated without having to exit and re-enter into the ng serve --watch.
Mention any other details that might be useful
Personal project, but I can push it to github if necessary.
The text was updated successfully, but these errors were encountered: