我遇到了这个TSLint错误:
no-use-before-declare is deprecated. Since TypeScript 2.9. Please use the built-in compiler checks instead.但是,它在我的第一行代码中:
import {Component, OnInit, Input, Output, EventEmitter, OnChanges, SimpleChanges, AfterViewInit} from '@angular/core';有人知道为什么这一行会出现这个错误吗?
发布于 2020-09-09 14:59:54
问题不太可能出在您的TypeScript代码上,但是在您的tslint.json配置中,它包含以下条目:
{
rules: {
...,
"no-use-before-declare": true,
...,
}
}您应该删除该条目,这样就没问题了。
https://stackoverflow.com/questions/61410750
复制相似问题