Closed okssq closed 2 years ago
@okssq 具体什么错误? 我测试了没问题
只要引用了组件就报错,删掉代码就正常~
<date-picker /> 换成 <DatePicker />
还是不行~
我试了,需要导出才可以
import DatePicker from "vue-datepicker-next";
export { DatePicker };
在script setup里面导出吗?
@okssq 对
不好意思,我遇到同样的问题,请问具体是怎么解决的,能给更详细一点吗?我没看懂,什么叫“在script setup”里面导出? 我是用的 options api 模式,我已经在有: components: { DatePicker , }, 用的是<date-picker 出错内容和上面这位兄台一摸一样,而且我特别奇怪的是,本地运行正常,只有发布后的版本才出这个错误。
@zuo305 具体是什么错误,还有代码是怎么样? 生产版本才有问题,感觉和 vue 有关系
Hi @mengxiong10 , 这个是错误截图,我的VUE 版本是3.2.47. 嗯,我这个确实很奇怪,我印象中上个月还是没有问题的,最近突然发现出错了。
Hi, @mengxiong10 I also tried the most simple code but got the same error.
Vue2-datepicker version: Vue version: Browser:
Steps to reproduce
Reproduction Link or Source Code
Expected behavior
Actual behavior