Closed softboy99 closed 3 years ago
Provide a demo with steps to reproduce please
step to reproduce: 1、npm init @vitejs/app my-vue-app -- --template vue 2、add the basic sample code in readme.md to app.vue:
3、run
I guess the problem would be your code is based on vue2. It failed in vue3 for the "extend Vue"
Yes, current package has incompatible code with Vue 3. I am going to implement several features for this package and after that I try to create pdf viewer for Vue 3. I hope it happens this summer.
inherits.js:4 Uncaught TypeError: Super expression must either be null or a function at _inherits (inherits.js:4) at pdf-viewer.vue?c8a8:912 at Module.fb15 (pdf-viewer.vue?c8a8:912) at webpack_require__ (bootstrap:19) at 0 (bootstrap:83) at bootstrap:83 at webpackUniversalModuleDefinition (universalModuleDefinition:3) at universalModuleDefinition:9 at chunk.2VCUNPV2.js?v=7252826d:4 at dep:vue-pdf-app:1 _inherits @ inherits.js:4 (anonymous) @ pdf-viewer.vue?c8a8:912 fb15 @ pdf-viewer.vue?c8a8:912 webpack_require__ @ bootstrap:19 0 @ bootstrap:83 (anonymous) @ bootstrap:83 webpackUniversalModuleDefinition @ universalModuleDefinition:3 (anonymous) @ universalModuleDefinition:9 (anonymous) @ chunk.2VCUNPV2.js?v=7252826d:4 (anonymous) @ dep:vue-pdf-app:1