-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Labels
Description
β This is not possible to use Twix.js with moment-timezone when I importing like this via Webpack
import moment from 'moment-timezone'
import 'twix'
And use something like
moment.twix()
So I got error
Uncaught (in promise) TypeError: __WEBPACK_IMPORTED_MODULE_4_moment_timezone___default.a.twix is not a function
π But this is possible to do if I want to use moment as moment-timezone
import moment from 'moment-timezone'
import _moment from 'moment'
import 'twix'
And use something like
_moment.twix()
Question is, Does it possible to use moment.twix() when moment is moment-timezone ?
PS: All are latest versions
Thanks so much.
Reactions are currently unavailable