📜  undefined(undefined,undefined) 中的 undefinedTypeScript 错误:找不到“历史”的类型定义文件.该文件在程序中,因为:隐式类型库“历史”TS2688 的入口点 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:23.652000             🧑  作者: Mango

代码示例1
// Given the error add the library as a type e.g.
// yarn add @types/component-emitter
undefined
TypeScript error in undefined(undefined,undefined):
Cannot find type definition file for 'component-emitter'.
  The file is in the program because:     // ^ This is the library you want to take
    Entry point for implicit type library 'component-emitter'  TS2688
Failed to compile.