gorails-episode-184 icon indicating copy to clipboard operation
gorails-episode-184 copied to clipboard

[Solution] Error Vue.js “Cannot read property 'props' of undefined”

Open 0bserver07 opened this issue 4 years ago • 0 comments

Error:

Uncaught TypeError: Cannot read property 'props' of undefined   
    at normalizeProps (vue.runtime.esm.js?ff9b:1291)   
    at mergeOptions (vue.runtime.esm.js?ff9b:1363)   
    at mergeOptions (vue.runtime.esm.js?ff9b:1372)   
    at Vue$3.Vue._init (vue.runtime.esm.js?ff9b:4268)   
    at new Vue$3 (vue.runtime.esm.js?ff9b:4384)  
    at HTMLDocument.eval (hello_vue.js?94ab:29)     
    at Object.t.dispatch (turbolinks.self-)   
    at r.t.Controller.r.notifyApplicationAfterPageLoad ...)   
    at r.t.Controller.r.pageLoaded (t...)   
    at turbolinks.self...  

Solution:

replace:

mixins: [TurbolinksAdapter]

Do this instead:

Vue.use(VueResource); 

I can do a pull request to fix this.

ref: https://stackoverflow.com/a/46239453/539075

0bserver07 avatar Apr 17 '20 01:04 0bserver07