I am currently starting a new angular project, and I would like to implement HMR (Hot Module Replacement).
I have done each and every step described in the tutorial, but I get the following errors:
Using the latest angular version. Fresh project setup.
NOTE: I have found the most relevant tutorial (in my opinion) , because I also swapped my code snippets with the ones described in it, so please use this one for reference.
The problem with the Project does not exist.
error was that I have forgot to add the local name (directory name) of the project in angular.json
Must become:
And, voila: