Closed tangjianye closed 6 years ago
installed "pdfjs-dist": "^2.0.112",
What version of ng2-pdf-viewer
and ionic
are you using?
Try to use pdfjs-dist
version 1.X
"ng2-pdf-viewer": "^3.0.1", I try pdfjs-dist version 1.X first. THS
I install "pdfjs-dist": "^1.9.607", work normal. THS again.
Did you install pdfjs-dist
version "^2.0.112"
by yourself?
I also got this issue but installed pdfjs-dist version 1.9.607 solved the issue. No more "Cannot find module .." error is popping up.
Uncaught Error: Cannot find module "pdfjs-dist/web/compatibility" at webpackMissingModule (pdf-viewer.component.js:6) at Object.exports.byteLength (pdf-viewer.component.js:6) at webpack_require (bootstrap b8bf910de33d251d2a9b:54) at Object.defineProperty.value (index.js:4) at webpack_require (bootstrap b8bf910de33d251d2a9b:54) at Object.253 (main.ts:9) at webpack_require (bootstrap b8bf910de33d251d2a9b:54) at Object.238 (main.js:412) at webpack_require (bootstrap b8bf910de33d251d2a9b:54) at webpackJsonpCallback (bootstrap b8bf910de33d251d2a9b:25)