
《Vue2/3 报错集合》
Vue2/3 报错集合
AvatarGiser
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
《Vue 警告》deep usage as a combinator has been deprecated. Use :deep(<inner-selector>) instead of :d
【代码】《Vue 警告》deep usage as a combinator has been deprecated. Use :deep() instead of :d。原创 2024-12-18 11:35:26 · 513 阅读 · 0 评论 -
《Vue3 报错》Uncaught TypeError: s.finally is not a function
《Vue3 报错》Uncaught TypeError: s.finally is not a function原创 2024-11-07 17:36:22 · 340 阅读 · 1 评论 -
《Vue3 报错》Right-hand side of ‘instanceof‘ is not an object
Vue3 写法:改为数组,不支持竖线隔开。Vue2 写法:支持用竖线隔开。原创 2023-08-04 13:40:16 · 1885 阅读 · 0 评论 -
《Vue2 报错》Router:This application has no explicit mapping for /error, so you are seeing this as a f
配置有关,默认是 hash 模式,配置成 history 模式。开发环境没问题,但发布出现的。方案二:如果还是要用 history 模型,需设置 Web服务器,详见。方案一:屏蔽即可,默认就是 hash 模式。站点发布到Web服务器上,刷新报如上错。与 Vue Router3 的。原创 2023-08-04 15:02:06 · 461 阅读 · 0 评论 -
《Vue2 报错》Failed to mount component: template or render function not defined.
我的错误是没有 <template>标签,因为不需要界面就写成如下。开发环境报错,但mounted中代码也运行。且项目编译不通过。。。<script>export default { mounted () { // TODO }}</script>正确如下:<template></template><script>export default { mounted (..原创 2021-07-12 17:59:54 · 780 阅读 · 1 评论 -
《Vue2 报错》Duplicate keys detected: ‘XXX‘. This may cause an update error.
<select class="custom-div" v-model="selectedVal" @change="onSlotChange"> <option v-for="item of props.layers" :key="item.name" :value="item">{{item.name}}</option></select>v-for 中 key 是值不唯一导致,将 option 中的 key 改为 id(唯一值)<s.原创 2021-07-05 16:35:57 · 378 阅读 · 0 评论 -
《Vue2 报错》Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Vue 项目编译报错,内存 不足,解决方案之一是关闭 sourcemap。原创 2023-12-07 14:38:28 · 414 阅读 · 0 评论