-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Hello guys,
First, thanks for building this useful tool.
Recently we upgraded to "ngm-cli": "1.0.4" and the --watch doesn't work for us anymore. So I did a little bit of research. Here is what I found.
When use command "ngm build -p src --watch=true --skip-bundles" and save any changes, the application is not automatically built again due to the error below.

The issue is caused by this
ngm-cli/src/commands/build.command.ts
Line 256 in 86cc937
| .then(taskQueue => tasksWatch({project, taskQueue, watch, paths: null})); |
There is another issue with tasks-watch.js file at
ngm-cli/src/utils/tasks-watch.ts
Line 28 in 86cc937
| task.skip = () => changedModule && i !== changedModule; |
There are two issues with this code.
- The first time the runTasks() runs, changedModule && i !== changedModule is undefined, which means every taks.skip would be undefined.
- The file changes, if somehow changedModule is 0. changedModule && i !== changedModule would return the value 0 instead of a boolean value.
Metadata
Metadata
Assignees
Labels
No labels
