如图,angular7需要pdf预览,选择npm? ng2-pdf-viewer ,可以运行,但是页面报了如图这个错误。
(Promise.allSettled is not a function ? ? at MessageHandler._deleteStreamController)
在GitHub看到有人说是要将zone升级到0.10以上版本,然而我们公司这个项目的版本不能动,因此想问下除了升级版本还有其他解决方法么?
pdfjs 可能用到了 Promise.allSettled,但是宿主环境不支持,加一个 polyfill 就可以了https://www.npmjs.com/package...
1.4m articles
1.4m replys
5 comments
56.7k users