balbarak / bootstrap-hijri-datepicker

Bootstrap Hijri Date picker
MIT License
56 stars 53 forks source link

Uncaught TypeError: n.iYear is not a function #2

Closed nohagazzaz closed 5 years ago

nohagazzaz commented 5 years ago

when following the steps mentioned in the readme file i get this error

Uncaught TypeError: n.iYear is not a function

in the console

balbarak commented 5 years ago

make sure you include the files in dist folder

and include momentjs and jquery with the specific version or above from cdn or any other files if you have it in your disk

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.1/moment.min.js"></script>
programmeranamul commented 2 years ago

image image

I am working on a sveltekit project. When I am trying to import moment-hijri, it's say me "moment.localeData is not a function". But It's work fine in my sapper project. How can I solve this?