[Vue warn]: Failed to mount component: template or render function not defined

时间:2018-05-06 17:04:05

标签: npm vue.js persian-calendar

I want to use an npm module which is based on Vue:

Persian Date & Time Picker For Vue.js

because I'm not familiar with node.js, I used wzrd.in to get a Iterable object:

https://wzrd.in/standalone/vue-persian-datetime-picker@latest

I used it in my code(I only include contents of my body tag):

$query = [
  'page' => $page,
  'username' => $user,
  // ... 
];

$url = 'http://...?'.http_build_query($query);

but I cannot use it and get the following error:

[Vue warn]: Failed to mount component: template or render function not defined.

enter image description here

1 个答案:

答案 0 :(得分:1)

我查看了vuePersianDatetimePicker对象的内容并找到了解决方案。

我应该使用vuePersianDatetimePicker.default代替vuePersianDatetimePicker