typo, there should be `dir` instead `target`