alireza-ab / vue-persian-datepicker

A datepicker component for select Persian date
https://alireza-ab.ir/datepicker
MIT License
44 stars 9 forks source link

nuxt app crashes while in ssr mode and page scroll occurs #14

Closed honarmanly closed 1 year ago

honarmanly commented 2 years ago

I have a nuxt application with PWA enabled. as I add date-picker to page while ssr is enabled and if page scrolls the page crashes

alireza-ab commented 2 years ago

What is the error? Could you show your code?

d4rkr3pt0r commented 2 years ago

@honarmanly I've load it in my nuxt project with SSR and PWA enabled. Eveything works fine. You may load the module incorrectly. Check this method:

<template>
    <client-only>
        <DatePicker></NewDatePicker>
    </client-only>
</template>
<script>
export default {
    components: {
        'DatePicker': () => import ('@alireza-ab/vue-persian-datepicker'),
    },
}
</script>