-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: moment.defineLocale is not a function Umbraco 7.10 #56
Comments
I'm having the same issue |
See moment/momentjs.com#171 |
I got the same issue in Umbraco 7.10.4. I removed '~/App_Plugins/Analytics/lib/momentjs/moment.js' , from App_Plugins/Analytics/package.manifest. And the plugin still seems to work as expected. Still i think this issue should be fixed. Maybe load it via assetsService.loadJs() instead of putting it in the package manifest? ~/App_Plugins/Analytics/backOffice/directives/DateRangePicker.Directive.js
|
TypeError: moment.defineLocale is not a function Umbraco 7.10 umbraco-community#56 umbraco-community#56 Removed ~/App_Plugins/Analytics/lib/momentjs/moment.js from package.config. Added assetsService to dateRangePicker directive to load moment.js before executing daterangepicker.
TypeError: moment.defineLocale is not a function
Line 12: /umbraco/lib/moment/en-gb.js
var en_gb = moment.defineLocale('en-gb', {
This error stops any sort of calendar functionality from working. i.e. can't set future publish dates on pages.
The text was updated successfully, but these errors were encountered: