Vue3+Vite+Ts使用pdfjs-dist

package.json,pdfjs-diist版本使用@2.11.338,高版本会报错

"dependencies": {
    "less": "^4.1.2",
    "lh-hooks": "^0.0.19",
    "pdfjs-dist": "^2.11.338",
    "vue": "^3.2.31",
    "vue-router": "^4.0.14"
  },
  "devDependencies": {
    "@types/node": "^17.0.21",
    "@types/pdfjs-dist": "^2.10.378",
    "@vitejs/plugin-vue": "^2.2.4",
    "typescript": "^4.6.2",
    "vite": "^2.9.1",
    "vue-tsc": "^0.29.8"
  }

PDF.vue







你可能感兴趣的:(Vue3+Vite+Ts使用pdfjs-dist)