Code Monkey home page Code Monkey logo

Comments (12)

zuo305 avatar zuo305 commented on June 3, 2024 1

Hi, @mengxiong10 I also tried the most simple code but got the same error.

Screenshot 2023-03-06 180330

from vue-datepicker-next.

mengxiong10 avatar mengxiong10 commented on June 3, 2024

@okssq 具体什么错误? 我测试了没问题

from vue-datepicker-next.

okssq avatar okssq commented on June 3, 2024

image
image
image

只要引用了组件就报错,删掉代码就正常~

from vue-datepicker-next.

mengxiong10 avatar mengxiong10 commented on June 3, 2024

<date-picker /> 换成 <DatePicker />

from vue-datepicker-next.

okssq avatar okssq commented on June 3, 2024

还是不行~

from vue-datepicker-next.

mengxiong10 avatar mengxiong10 commented on June 3, 2024

我试了,需要导出才可以

import DatePicker from "vue-datepicker-next";
export { DatePicker };

from vue-datepicker-next.

okssq avatar okssq commented on June 3, 2024

在script setup里面导出吗?

from vue-datepicker-next.

mengxiong10 avatar mengxiong10 commented on June 3, 2024

@okssq

from vue-datepicker-next.

zuo305 avatar zuo305 commented on June 3, 2024

不好意思,我遇到同样的问题,请问具体是怎么解决的,能给更详细一点吗?我没看懂,什么叫“在script setup”里面导出?
我是用的 options api 模式,我已经在有:
components: {
DatePicker ,
},
用的是<date-picker
出错内容和上面这位兄台一摸一样,而且我特别奇怪的是,本地运行正常,只有发布后的版本才出这个错误。

from vue-datepicker-next.

mengxiong10 avatar mengxiong10 commented on June 3, 2024

@zuo305 具体是什么错误,还有代码是怎么样? 生产版本才有问题,感觉和 vue 有关系

from vue-datepicker-next.

zuo305 avatar zuo305 commented on June 3, 2024

Hi @mengxiong10 , 这个是错误截图,我的VUE 版本是3.2.47. 嗯,我这个确实很奇怪,我印象中上个月还是没有问题的,最近突然发现出错了。
Screenshot 2023-03-05 104950
Screenshot 2023-03-05 104950

from vue-datepicker-next.

zuo305 avatar zuo305 commented on June 3, 2024

Screenshot 2023-03-05 105005

from vue-datepicker-next.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.