Error reporting after dependent installation
TypeError: Cannot read properties of undefined (reading 'catch') at PDFJSWrapper.renderPage (pdfjsWrapper.js?a068:196) at VueComponent.resize (componentFactory.js?0d60:75) at invokeWithErrorHandling (vue.esm.js?a026:1872) at VueComponent.invoker (vue.esm.js?a026:2197) at invokeWithErrorHandling (vue.esm.js?a026:1872) at VueComponent.Vue.$emit (vue.esm.js?a026:3912) at VueComponent.handler (resize-sensor.vue?c7ed:49) at invokeWithErrorHandling (vue.esm.js?a026:1872) at Watcher.run (vue.esm.js?a026:4593) at flushSchedulerQueue (vue.esm.js?a026:4335)
Solution:
lock the dependent version
npm and [email protected]
npm and [email protected]
pacakge.json
“pdfjs-dist”: “2.5.207”,
“vue-pdf”: “4.2.0”
Similar Posts:
- TypeError: Cannot read property ‘length’ of null
- [Solved] Vue pdfjs-dist Error: Module parse failed: Unexpected token (2267:39)
- [Solved] Error: `resize` should not be called during main process.
- How to Solve Linux resize2fs error: Bad magic number in super-block
- [Solved] echart Error: Can’t get dom width or height
- [Solved] NPM run dev error [npm ERR! code ELIFECYCLE]
- Error reporting of dependency package introduced by idea
- Pie Component carousel Error: Instance ec_1623382451382 has been disposed (Error-Loading Change Redraw)
- attributeError: ‘NoneType’ object has no attribute ‘shape’