Use chokidar for watching and prevent duplicated error events