我从github克隆了pdf.js,当我运行http://localhost:8888/web/viewer.html时,它运行正常。但是,当我运行简单的hello world示例http://localhost:8888/examples/helloworld/index.html时,我在Chrome控制台中收到错误:
Uncaught (in promise) TypeError: PDFNetworkStream is not a constructor
at eval (api.js:206)
at <anonymous>
我正在运行gulp服务器,如示例中所述。
知道为什么这个简单的例子对我不起作用?