【发布时间】:2021-04-09 15:31:36
【问题描述】:
我正在部署 Firebase 功能,但在部署时出现此错误
../../../../node_modules/@types/inquirer/lib/utils/screen-manager.d.ts:1:10 - error TS2305: Module '"readline"' has no exported member 'Interface'.
1 import { Interface as ReadLineInterface } from "readline";
~~~~~~~~~
Found 15 errors.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! functions@ build: `tsc`
npm ERR! Exit status 2
我的 ts 配置,
{
"compilerOptions": {
"module": "commonjs",
"noImplicitReturns": true,
"noImplicitAny": false,
"noUnusedLocals": true,
"outDir": "lib",
"sourceMap": true,
"strict": true,
"target": "es2017"
},
"compileOnSave": true,
"include": [
"src"
]
}
这个错误是突然发生的,我的项目曾经正确部署。我不知道为什么现在发生这种情况?请指导我这个错误的根本原因是什么
【问题讨论】: