alexjoverm / v-runtime-template

Vue component for compiling templates on the fly using a v-html like API
MIT License
605 stars 72 forks source link

Trying to use this package, and got: this$1.$options.methods is undefined #50

Closed vedmant closed 5 years ago

vedmant commented 5 years ago

Trying to use this package, and got: this$1.$options.methods is undefined

I have dynamic template like following:

sfsdfsd fsd <emoji emoji="joy">:joy:</emoji>

It doesn't render anything and I see error:

Vue warn]: Error in render: "TypeError: this$1.$options.methods is undefined"

found in

---> <VRuntimeTemplate>
       <TextareaEmojiPicker> at resources/assets/js/components/shared/TextareaEmojiPicker.vue
         <Thread> at resources/assets/js/components/messages/Thread.vue
           <Root> vendor.js:13031:15
    warn http://localhost:8000/assets/js/vendor.js?id=284f3ece85c7235f90ba:13031
    logError http://localhost:8000/assets/js/vendor.js?id=284f3ece85c7235f90ba:14280
    globalHandleError http://localhost:8000/assets/js/vendor.js?id=284f3ece85c7235f90ba:14275
    handleError http://localhost:8000/assets/js/vendor.js?id=284f3ece85c7235f90ba:14241
    _render http://localhost:8000/assets/js/vendor.js?id=284f3ece85c7235f90ba:15919
    updateComponent http://localhost:8000/assets/js/vendor.js?id=284f3ece85c7235f90ba:16417
    get http://localhost:8000/assets/js/vendor.js?id=284f3ece85c7235f90ba:16815
    run http://localhost:8000/assets/js/vendor.js?id=284f3ece85c7235f90ba:16890
    flushSchedulerQueue http://localhost:8000/assets/js/vendor.js?id=284f3ece85c7235f90ba:16648
    nextTick http://localhost:8000/assets/js/vendor.js?id=284f3ece85c7235f90ba:14376
    flushCallbacks http://localhost:8000/assets/js/vendor.js?id=284f3ece85c7235f90ba:14302
alexjoverm commented 5 years ago

Fixed by 805095cfea226ac1eaf696a7f44adea70c5cfd49