【发布时间】:2021-10-28 09:50:36
【问题描述】:
我正在使用 typescript 处理 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.
我不知道这可能是从哪里引起的。自上次运行以来,我没有更改任何内容。
有什么解决办法吗?
【问题讨论】:
-
您使用的是哪个版本的节点? 16 个中的 14 个?
标签: javascript typescript firebase function