0

Angular 13. I am using one library which has many dependencies, so I can not make it a local library. I want to change the source inside package in node_modules and see its effects - debug it. For that everytime I make any change it have to be stopped and do build again. Its little complex so I need to run and check multiple times. Is there any why where angular will reload on changes in file inside node packages.

manish
  • 59
  • 7
  • But this defies the goal of package managers. If you clone your git repository, and run the project, you won't have these changes! What's the name of the library you're using? – Pieterjan Aug 28 '22 at 17:38
  • I am using devextreme lib, they provide sources, I wanted to modify myself. They have lot of packages so I cant make them local projects/libs. – manish Aug 31 '22 at 00:32

1 Answers1

0

I'm facing the same kind of issue with my Angular app. I resolve partially my problem with adding this to the cli angular.json file : "cache": { "enabled": false, "environment": "all" }

But still need to recall ng serve for the browser to notify the changes. I tried npm link (https://docs.npmjs.com/cli/v8/commands/npm-link, https://medium.com/@joosep.parts/create-an-angular-14-library-use-it-locally-when-developing-and-publish-the-package-to-npm-689ca2efdea8) solution but none seems to work for the live reloading thing.