我在我的项目中使用 esbuild,我对二进制文件使用加载器,比如这个。结果,在我的 TypeScript 中,我有像
import('./some_image.png')
这样的代码。当 TypeDoc 看到这个导入时失败。
error TS2792: Cannot find module './some_image.png'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
有没有办法让它忽略未解决的导入并假设一切正常?