globalizejs / globalize

A JavaScript library for internationalization and localization that leverages the official Unicode CLDR JSON data
https://globalizejs.com
MIT License
4.8k stars 603 forks source link

validateParameterTypeString is not a function error even though number.js is defined before date.js #681

Closed number45 closed 7 years ago

number45 commented 7 years ago

I'm getting the error validateParameterTypeString is not a function when trying to use parseDate. Searching suggests this can occur when number.js is not imported before date.js however I am importing the files in the correct order.

<script src="/scripts/customformvalidation/Globalize/cldr/cldr.js"></script> <script src="/scripts/customformvalidation/Globalize/cldr/event.js"></script> <script src="/scripts/customformvalidation/Globalize/cldr/supplemental.js"></script> <script src="/scripts/customformvalidation/Globalize/globalize.js"></script> <script src="/scripts/customformvalidation/Globalize/number.js"></script> <script src="/scripts/customformvalidation/Globalize/date.js"></script>

Regards.

rxaviers commented 7 years ago

I could not reproduce the bug. I tried https://gist.github.com/rxaviers/ac7c8e3ae9181d1a07654c84a8926b77.

Please, provide reproducible example, in which case we reopen the issue. Thanks