Could not find a declaration file for module 'open-graph-scraper'. '/home/fngying/文档/Educator/dev/educator-fyi-api/node_modules/open-graph-scraper/index.js' implicitly has an 'any' type.
  Try `npm install @types/open-graph-scraper` if it exists or add a new declaration (.d.ts) file containing `declare module 'open-graph-scraper';`


/// <reference path="../types/open-graph-scraper.d.ts" />

这种引用方式必须在第一行。

.d.ts文件引用报错

 

.d.ts文件引用报错

相关文章:

  • 2022-01-08
  • 2021-06-14
  • 2021-06-26
  • 2021-08-24
  • 2021-05-08
  • 2022-12-23
  • 2022-01-08
  • 2022-01-08
猜你喜欢
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-18
  • 2022-12-23
相关资源
相似解决方案