支持word(.docx)、excel(.xlsx,.xls)、pdf等各类型office文件预览的vue组件集合,提供一站式office文件预览方案,支持vue2和3,也支持React等非Vue框架。Web-based pdf, excel, word preview library
3.58k
stars
428
forks
source link
TypeError: Cannot read properties of undefined (reading 'getContext') #320
Open
pengliang0601 opened 1 month ago
mac 使用报错 TypeError: Cannot read properties of undefined (reading 'getContext')
试过纯 js 也不行’’,也有报错,具体没有截图
我的 package.js "dependencies": { "@element-plus/icons-vue": "^2.1.0", "@vue-office/pdf": "^1.6.2", "@vueuse/core": "^10.5.0", "axios": "^0.27.2", "dayjs": "^1.11.7", "deepmerge": "^4.2.2", "element-plus": "^2.2.32", "event-source-polyfill": "^1.0.31", "js-audio-recorder": "^1.0.7", "js-base64": "^3.7.7", "jsencrypt": "^3.2.1", "nprogress": "^0.2.0", "pinia": "^2.0.0-rc.10", "pinia-plugin-persistedstate": "^3.2.0", "qrcode.vue": "^3.4.1", "recordrtc": "^5.6.2", "rtc-beauty-plugin": "^0.1.0", "simple-keyboard": "^3.7.75", "simple-keyboard-layouts": "^3.3.96", "swiper": "^9.4.1", "tim-js-sdk": "^2.27.2", "trtc-js-sdk": "^4.15.7", "vue": "^3.2.37", "vue-demi": "^0.14.7", "vue-router": "4" }, "devDependencies": { "@babel/types": "^7.19.0", "@kfgf/trtc-video": "^0.0.4", "@types/nprogress": "^0.2.0", "@typescript-eslint/eslint-plugin": "^5.36.2", "@typescript-eslint/parser": "^5.36.2", "@vitejs/plugin-vue": "^3.1.0", "dart-sass": "^1.25.0", "eslint": "^8.23.0", "eslint-config-prettier": "^8.5.0", "eslint-define-config": "^1.12.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-vue": "^9.4.0", "husky": "^8.0.1", "lint-staged": "^13.0.3", "mrm": "^4.1.0", "prettier": "^2.7.1", "sass": "^1.54.9", "typescript": "^4.6.4", "vite": "^3.1.0", "vite-plugin-eslint": "^1.8.1", "vue-tsc": "^0.40.4" } }