Closed hunterae closed 5 years ago
I'm getting this now:
TypeError: Cannot convert undefined or null to object
at keys (<anonymous>)
Looks like at this line:
Object.keys(methods).forEach(function (e) {if(typeof this$1.$options.methods[e]==="undefined") { passthrough.methods[e] = methods[e]; }} );
Probably need to do:
Object.keys(methods || {})
On all objects.
@moltar , are you saying you're getting that error with the code I submitted in this pull request?
That change shouldn't be necessary as methods is set to {} by default; see https://github.com/alexjoverm/v-runtime-template/blob/9d7469bffe5c040dc6f7953514100e31b0d6e4f1/index.js#L32
Yes, I am getting the error with this PR.
@moltar , I did not previously rebuild the dist scripts. I did that just now and pushed. Can you see if that fixes the problem for you. Also, if you're still having issues, could you fork this codepen and send me a broken example: https://codepen.io/hunterae/pen/WBrzXL
That does indeed work great. Thanks!
Fixed by 1.7.0
…are not defined