deepu07
171
1
Laravel

Laravel-vue.js

Posted 11 months ago by deepu07

Hi Folks, I got weird error in Laravel app Vue file.

`app.js:36570 [Vue warn]: Property or method "name" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

(found in ) warn @ app.js:36570 warnNonPresent @ app.js:37876 has @ app.js:37909 (anonymous) @ VM3379:3 Vue._render @ app.js:40521 updateComponent @ app.js:38765 get @ app.js:39119 Watcher @ app.js:39108 mountComponent @ app.js:38772 Vue.$mount @ app.js:44517 Vue.$mount @ app.js:46916 (anonymous) @ app.js:13931 webpack_require @ app.js:20 Object.defineProperty.value @ app.js:13881 webpack_require @ app.js:20 (anonymous) @ app.js:63 (anonymous) @ app.js:66 app.js:36570 [Vue warn]: Property or method "name" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

(found in ) warn @ app.js:36570 warnNonPresent @ app.js:37876 has @ app.js:37909 (anonymous) @ VM3379:3 Vue._render @ app.js:40521 updateComponent @ app.js:38765 get @ app.js:39119 Watcher @ app.js:39108 mountComponent @ app.js:38772 Vue.$mount @ app.js:44517 Vue.$mount @ app.js:46916 (anonymous) @ app.js:13931 webpack_require @ app.js:20 Object.defineProperty.value @ app.js:13881 webpack_require @ app.js:20 (anonymous) @ app.js:63 (anonymous) @ app.js:66 app.js:36570 [Vue warn]: Property or method "description" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

(found in )`

Here is My app.js code `new Vue({ el: '#app',

data: {
   name: ' ',
   description: ' '
},

    methods: {
    },

});`

#blade file I'm loading app.js file <script src="/js/app.js"></script>

Any help. Thanks in advance

Please sign in or create an account to participate in this conversation.