gorails-episode-184
gorails-episode-184 copied to clipboard
[Solution] Error Vue.js “Cannot read property 'props' of undefined”
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