我使用react-slingshot
(链接)作为我的入门工具包(create-react-app
用作基础)。npm start
最近,在我的项目上运行脚本时出现错误日志。我对 github 和 stack over flow 进行了一些研究,但似乎这些错误很少见。
Error from chokidar (D:\projects\product-travel-ui\node_modules\date-fns\esm_lib\assign): Error:
UNKNOWN: unknown error, watch
Error from chokidar (D:\projects\product-travel-ui\node_modules\date-fns\esm_lib\getUTCISOWeekYear):
Error: UNKNOWN: unknown error, watch
Error from chokidar (D:\projects\product-travel-ui\node_modules\date-fns\esm_lib\getUTCDayOfYear):
Error: UNKNOWN: unknown error, watch
Error from chokidar (D:\projects\product-travel-ui\node_modules\date-fns\esm_lib\requiredArgs):
Error: UNKNOWN: unknown error, watch
Error from chokidar (D:\projects\product-travel-ui\node_modules\date-fns\esm_lib\setUTCDay): Error:
UNKNOWN: unknown error, watch
Error from chokidar (D:\projects\product-travel-ui\node_modules\date-fns\esm_lib\getUTCWeekYear):
Error: UNKNOWN: unknown error, watch
Error from chokidar (D:\projects\product-travel-ui\node_modules\date-fns\esm_lib\getUTCWeek): Error:
UNKNOWN: unknown error, watch
Error from chokidar (D:\projects\product-travel-ui\node_modules\date-fns\esm_lib\protectedTokens):
Error: UNKNOWN: unknown error, watch
Error from chokidar (D:\projects\product-travel-ui\node_modules\date-fns\esm_lib\getUTCISOWeek):
Error: UNKNOWN: unknown error, watch
Error from chokidar (D:\projects\product-travel-ui\node_modules\date-
fns\esm_lib\startOfUTCISOWeekYear): Error: UNKNOWN: unknown error, watch
错误日志太长,它记录了我在项目中使用的所有库。在终端出现这些行后,我们的项目无法热重载,我不得不手动重新启动它。
关于这些错误的任何想法?