小编Viv*_*vek的帖子

错误 TS6231:无法解析带有扩展名的路径 '':'.ts'、'.tsx'、'.d.ts'

我正在使用打字稿处理firebase函数并且在运行时控制台中出现此错误:tsc . -watch

[12:19:41 PM] Starting compilation in watch mode...

error TS6231: Could not resolve the path '' with the extensions: '.ts', '.tsx', '.d.ts'.
  The file is in the program because:
    Root file specified for compilation

[12:19:45 PM] Found 1 error. Watching for file changes.
Run Code Online (Sandbox Code Playgroud)

我不知道这可能是从哪里产生的。自从上次工作以来我没有改变任何东西。

有什么解决办法吗?

javascript function firebase typescript

24
推荐指数
4
解决办法
3万
查看次数

标签 统计

firebase ×1

function ×1

javascript ×1

typescript ×1