Closed nohagazzaz closed 5 years ago
make sure you include the files in dist
folder
bootstrap-datetimepicker.min.css
bootstrap-hijri-datepicker.min.js
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>
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?
when following the steps mentioned in the readme file i get this error
Uncaught TypeError: n.iYear is not a function
in the console