Closed y-tsuno closed 5 years ago
I'm seeing similar issues. It looks like https://github.com/alexjoverm/v-runtime-template/commit/de3e504bc5b57ddd9816ed58b084b12ea12a3d3a is having unintended side effects.
In my case, I'm getting
Error in render: "TypeError: this$1.$options.computed is undefined" found in ---> <VRuntimeTemplate> <PressDynamicContent> at ui/ud-ui/app/javascript/packs/ud_ui/components/dynamic-content/component.vue <Root>
with a stack trace that leads back to https://github.com/alexjoverm/v-runtime-template/blob/de3e504bc5b57ddd9816ed58b084b12ea12a3d3a/index.js#L40
I had to roll back to 1.5.2 to get moving again.
Facing similar issue even with 1.5.2
Same issue, need to check this.$options.computed (methods, ...) for existance.
Same issue here - also rolled back to 1.5.2
Same issue, for some reason, after installing vue2-filters and add the file inside the plugins key of nuxt.config.js
, the error disappeared. I don't know why. I'm using nuxt2.
This issue don't occur for me in 1.5.2, but after 1.6.1 it does, and 1.6.2 don't fixes it.
vendor.js:47104 [Vue warn]: Error in render: "TypeError: Cannot read property 'getActions' of undefined"
found in
---> <VRuntimeTemplate>
...
Related to this lines:
The this.$options.methods
and this.$options.computed
is undefined here in some cases. I have checked with vue 2.5 and 2.6 and the problem is the same.
It seems to be implemented by #21. The example App.vue
implements methods
and computed
, so @Pyro979 maybe don't identified this at time.
As immediate workaround, I need back to 1.5.2 version.
@Pyro979 or @alexjoverm could you please fix that? I am not able to modify it to a PR at moment.
Thanks!
I'm getting the same issues with Version 1.6.2 and it works with 1.5.2
Same here when using a computed value for the template.
I went to see if I could work on this but I'm not sure how to run the test suite. Is there any documentation on that?
1.6.2 fails with all methods defined. Downgrade to 1.52 works for me too.
@alexjoverm : any update on when this issue might be addressed? Seems like everybody here has had to downgrade to 1.5.2
Dang, what? This happens to me even when downgrading all the way to version 1.4.0. Any ideas? I'm confused. This is blocking me big-time.
Edit: Nevermind, I'm an idiot, lockfile was causing it to keep reinstalling the most recent version.
I just put a PR in to fix this issue: https://github.com/alexjoverm/v-runtime-template/pull/45. I also pinged @alexjoverm directly on Twitter just now to see if we can get a fix merged in for this since a lot of us seem to be having the same problem(s).
Can confirm that downgrading to 1.1.0
fixes this for me.
Downgrading to 1.5.2 also fixed this problem for me.
Hey everyone, sorry for the waiting, is fixed in the latest version 805095cfea226ac1eaf696a7f44adea70c5cfd49
Thanks @alexjoverm. I'm working with this code now, so I'll keep an eye out for issues.
i use v-runtimetempalte in nuxtjs When I define a method, an error like title will be generated Is there any way to solve it?
index.vue
Logo.vue
node_modules/v-runtime-template/dist/v-runtime-template.cjs.js:53:83
package.json