![](https://img-blog.csdnimg.cn/768b11cb50b3459d8a48baa00eda98df.jpeg?x-oss-process=image/resize,m_fixed,h_224,w_224)
vue遇到的一些报错问题以及处理
vue3遇到的一些报错问题以及处理
回忆哆啦没有A梦
歌荒???网抑云:回忆哆啦没有A梦。(百万播放量歌单等你来听!!!)
展开
-
vue3代码运行报错import { hasInjectionContext, inject, toRaw, watch, unref, markRaw, effectScope, ref,
vue3代码运行报错No matching export in "node_modules/.pnpm/vue-demi@0.14.6_vue@3.2.47/node_modules/vue-demi/lib/index.mjs" for import "hasInjectionContext" node_modules/.pnpm/pinia@2.1.7_typescript@5.0.4_vue@3.2.47/node_modules/pinia/dist/pinia.mjs:6:9:原创 2023-11-01 09:54:49 · 2724 阅读 · 0 评论 -
nodejs升级,导致项目报错FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context
nodejs升级后,代码运行报错。报错内容:at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) { opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ], library: 'digital envelope routines', reaso原创 2023-08-28 14:33:02 · 1066 阅读 · 0 评论 -
ios低版本 globalThis不存在导致的白屏问题
在用Vue3+Ts开发新项目时,在ios10机器下打开是白屏查找各种原因后,打开console,发现ios10控制台报错:ReferenceError: Can’t find variable: global解决办法:// index.html页面粘贴以下代码即可<script>! function (t) {function e() {var e = this || self;e.globalThis = e, delete t.prototype._T_}"object"原创 2021-11-11 14:41:34 · 3325 阅读 · 2 评论 -
swiper+vue3,使用自动切换autoplay+自定义分页器navigation的报错问题解决
swiper+vue3,使用自动切换autoplay+自定义分页器navigation的报错问题。以及报错This dependency was not found:swiper/css/pagination in ./node_modules/cache-loader/dist/cjs.js??ref--14-0!./node_modules/babel-loader/lib!./node_modules/ts-loader的解决方案原创 2022-10-13 11:30:06 · 2354 阅读 · 0 评论 -
vue3.0使用vue-router4.x配置路由* 404页面,控制台报错
vue3.0使用vue-router4.x配置路由* 404页面,控制台报错:Error: Catch all routes ("*") must now be defined using a param with a custom regexp.原创 2021-12-31 15:32:17 · 2679 阅读 · 2 评论 -
Vetur和ESlint冲突导致的VSCode 单双引号自动替换、拖尾逗号、代码结尾分号的问题
vscode vue项目保存自动格式化vue项目在安装Vetur之后,Ctrl+S保存,自动将‘单引号’改为“双引号”,导致eslint报警告⚠;自动给末尾添加逗号,报错展示:在vscode的设置——找到 settings.json配置文件,添加如下代码:// 解决vetur插件问题 "vetur.format.defaultFormatterOptions": { "js-beautify-html": { // force-aligned原创 2021-09-26 11:42:25 · 2299 阅读 · 1 评论 -
vue3 使用vant 报错:“To install them, you can run: npm install --save vant/es/button vant/es/button/style
vue3 使用vant 报错:“To install them, you can run: npm install --save vant/es/button vant/es/button/style"控制台报错信息:These dependencies were not found* vant/es/button in ./src/main.ts* vant/es/button/style in ./src/main.tsTo install them, you can run: npm insta原创 2022-06-17 16:34:57 · 3455 阅读 · 0 评论 -
Vue3 router 刷新路由报错 Uncaught SyntaxError Unexpected token
Vue router history模式下 路由刷新白屏,控制台报错:Uncaught SyntaxError Unexpected token原创 2021-12-31 14:33:43 · 2381 阅读 · 0 评论 -
Vue3.x 出现 _unref is not defined 错误,vue3使用图片img src require 动态修改图片。
Vue3.x 出现 _unref is not defined 错误,vue3使用图片img src require 动态修改图片。原创 2022-03-29 17:11:16 · 2659 阅读 · 5 评论 -
SntaxError: The requested module ‘/node_modules/.vite/deps/xlsx.js?v=3067d777‘ does not provide an e
SntaxError: The requested module '/node_modules/.vite/deps/xlsx.js?v=3067d777' does not provide an export named 'default' ,在vue3+vite的项目中,使用xlsx,安装使用后控制台报错原创 2023-04-17 14:50:01 · 3381 阅读 · 1 评论 -
vue3 Error on Cannot read properties of null (reading ‘insertBefore‘)报错无法正常显示,解决办法。
vue3报错Cannot read properties of null (reading 'insertBefore')的生产环境解决办法原创 2023-01-12 11:40:29 · 6834 阅读 · 6 评论