我正在使用打字稿处理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)
我不知道这可能是从哪里产生的。自从上次工作以来我没有改变任何东西。
有什么解决办法吗?