0
点赞
收藏
分享

微信扫一扫

.d.ts文件引用报错

源码之路 2023-03-04 阅读 88


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文件引用报错_ci

 

.d.ts文件引用报错_ci_02

举报

相关推荐

0 条评论