Closed x9nico closed 1 year ago
Hey, I'm not sure what causes your issue. A fresh vite project with both your version of vue and the latest one works. Can you try updating to the latest version?
Hey, I'm not sure what causes your issue. A fresh vite project with both your version of vue and the latest one works. Can you try updating to the latest version?
Ok, I tested on a fresh vue project, and the interface is now like that : It's not possible on version 0.3.8 to still have this interface ? =>
I also got the same issue - it seems to have lost the stylesheet. I've rolled back to 0.3.4 for now and the problem has gone away.
Same issue, stylesheets missing
My bad, probably how I changed the packaging broke the "autoincluded" stylesheets. I'll take a look over the weekend to figure out how to fix it, but meanwhile the css file is there in the dist folder, so you should be able to import 'vue3-datepicker/dist/vue3-datepicker.css'
.
So, as an update:
Fresh vue project install-and-go works now, so I'm closing this for now
I'm using the newest version and there is no styles if I don't manually inject them by adding import 'vue3-datepicker/dist/vue3-datepicker.css';
. My Laravel application is using Vue, Vite (newest major version 5, might this be the issue?), the Laravel Vite plugin and the Vite Vue plugin. It used to work so it did break at some point.
This is how I use the library in my single file component:
<template>
[...]
<DatePicker id="offer-expires-at"
:locale="locale"
input-format="yyyy-MM-dd"
starting-view="day"
:lower-limit="new Date()"
:upper-limit="latestExpirationDate"
v-model="expiresAt"
class="w-full mt-2 bg-white shadow border border-gray-300 px-3 py-2 rounded-md text-xs" />
[...]
</template>
<script>
[...]
import DatePicker from 'vue3-datepicker';
import 'vue3-datepicker/dist/vue3-datepicker.css'; // The temporary workaround
[...]
export default {
components: {
[...]
DatePicker,
},
}
</script>
Is there anything else I could provide to assist further debugging? Thank you for your work!
Hello,
When I'm trying to install vue3-datepicker (0.3.4) with a project contains the version 3.2.9 from VueJS. But, it looks like that the lib is incompatible.
Is it possible to make an update to fix it please ?
In case, there is the logs:
There is all my dependencies :
Thanks.