mengxiong10 / vue2-datepicker

A datepicker / datetimepicker component for Vue2
https://mengxiong10.github.io/vue2-datepicker/index.html
MIT License
1.52k stars 405 forks source link

Functional components without render functions #32

Closed OwenMelbz closed 6 years ago

OwenMelbz commented 6 years ago

Hi guys,

Recently we've updated vue to 2.5.9

Now when we compile we're getting

ideas_-_ideas_work

Any suggestions as to how to fix this?

Thanks

mengxiong10 commented 6 years ago

I try it with vue 2.5.9&& vue-loader 13.5.0. It's normal without error. The error should be from vue-loader. Or you use the functional option somewhere. Can you give me more info.

OwenMelbz commented 6 years ago

Hmm, This is a dump of the versions we're using

├─ vue-hot-reload-api@2.2.4
├─ vue-loader@13.5.0
├─ vue-resize@0.4.3
├─ vue-style-loader@3.0.3
├─ vue-template-compiler@2.5.9
├─ vue-template-es2015-compiler@1.6.0
├─ vue@2.5.9
├─ vue2-datepicker@1.6.2

What other information would be helpful do you think?

Do you know what the functional options are?

mengxiong10 commented 6 years ago

https://vuejs.org/v2/guide/render-function.html#Functional-Components How do you use the Datepicker. I think the problem is on vue-loader. I suggest you copy the file directly, and then try to import them as a common component instead of npm. I consider packing them into js file.

mengxiong10 commented 6 years ago

I removed the inner template tag. And publishd v1.6.3. I am not sure if this will solve your problem