typescript - TypeScript Watch 选项不起作用 Windows 10 命令行
问题描述
我只是试图执行从 Windows 终端监视文件的代码:
tsc -w .\app.ts
我收到消息:
error TS5001: The current host does not support the --watch option.
现在我研究了其他解决方案,我看到 GitHub 说尝试这样的解决方案,因为显然 tsc.exe 没有实现文件监视,而 node.js 有。
node tsc.js -w app.ts
但这又返回了另一条错误消息:
module.js:487 throw error;
Error: Cannot find module 'C:.\..\tsc.js
我需要做什么才能超越这个问题?
解决方案
推荐阅读
- php - 使用 PHP 截断分页
- git - 从本地提交和推送后无法在 Prod 中拉取更改
- python - 如何按层次类别结构中的值对熊猫中的数据框进行排序
- testing - 如何在 lambdatest 中在多个浏览器上运行测试?
- android - 在 Xamarin 中绑定 ListView 不绑定两个值
- r - 使用蒙特卡罗下的拒绝方法来解决R中的一个整数
- azure - Azure devops 服务连接已过期,无法编辑/续订
- python - 按索引搜索数据框并导出信息
- r - 在 CPL_geos_binop(st_geometry(x), st_geometry(y), op, par, pattern 中使用 st_intersects 时出错:评估错误:IllegalArgumentException
- java - 如何仅更改 LinkedList 中的一个值