Vue报错笔记(1)vue.js:515 [Vue warn]: Property or method "name" is not defined on the instance but refere
来源:互联网 发布:java认证培训中心 编辑:程序博客网 时间:2024/06/06 01:51
报错:
vue.js:515 [Vue warn]: Property or method "name" is not defined on the instance but referenced during render. Make sure to declare reactive data properties in the data option. (found in root instance)
解决:
ctrl+f 搜索代码里面哪里使用了name,就是你使用了但是在data里面没有定义
name没有定义,设置一个初始值即可
name 在data那里没有定义。
要这样定义:
export default { name: 'app', data() { return { name: '' } }, ......
阅读全文
0 0
- Vue报错笔记(1)vue.js:515 [Vue warn]: Property or method "name" is not defined on the instance but refere
- vue.js报错 [Vue warn]: Cannot find element: #app
- npm is known not to run on Node.js vue启动报错
- Vue报错笔记(3):[Vue warn]: Failed to resolve directive: mod (found in <ComponentA>)
- [Vue warn]: Failed to mount component: template or render function not defined. (found in root insta
- Vue报错笔记(2):No 'Access-Control-Allow-Origin' header is present on the requested resource.
- Vue.js搭建路由报错 router.map is not a function,Cannot read property ‘component’ of undefined
- [Vue warn]: Attribute "id" is ignored on component <div> because the component is a fragment instan
- vue引入组件无法下你是且报错[Vue warn]: Do not use built-in or reserved HTML elements as component id: header
- The Vue Instance
- vue.js:Namespace "v-on" is not bound
- vue.js:[Vue warn]: Cannot find element:
- vue报错 vue Cannot read property ‘ob’ of undefined
- Vue列表渲染指令v-for的索引$index报错Uncaught ReferenceError: $index is not defined
- Vue.js搭建路由报错 router.map is not a function
- Vue.js搭建路由报错 router.map is not a function
- VUE.JS v-for渲染过程中 $index is not defined
- 使用Vue的时候出现 $index is not defined
- 不想git更新代码时产生merge记录,可以使用git rebase命令
- 计算机网络一些题
- Servlet 生命周期、工作原理
- 微信授权登录-前后端分离
- 更新所有pip安装的程序
- Vue报错笔记(1)vue.js:515 [Vue warn]: Property or method "name" is not defined on the instance but refere
- python的ID方法
- 实现栈的pop,push和getMin
- 怎样用JS实现关闭当前窗口
- PHP依赖注入
- 文件处理命令tac
- 第7周项目2- 建立链队算法库
- 史上最全的架构师图谱
- 竞赛