
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2018 12:58 PM
What's the best way to use moment-timezone in a Client Controller of a Widget?
I'm getting an error that states TypeError: moment(...).tz is not a function, even though I can see moment-timezone being loaded in the browser console.
I currently have moment-timezone-with-data-2010-2020-v0.5 listed as a Dependency on my Widget, but it looks like it's getting loaded in from js_includes_sp as well.
Solved! Go to Solution.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2018 08:11 AM
I figured it out. Turns out the widget had another dependency that included moment-timezone as a JS Include. Must've been conflicting with each other.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2018 08:11 AM
I figured it out. Turns out the widget had another dependency that included moment-timezone as a JS Include. Must've been conflicting with each other.