You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the moment dependency, The current master build of metro-packager/react-native really doesn’t like dynamic require statements. Importing the current version of moment produces the error
TransformError: /.../moment/moment.js: require() must have a single string literal argument
I’m getting moment.version is undefined when trying to use moment from the linked PR with the current moment-timezone. When importing moment manually and checking what it contains, seems there’s a default export...
Moment Timezone doesn't contain any dynamic requires. Any lingering problems with core Moment not being updated could be due to package manager oddities. See #982 (comment) for more details.
In the
moment
dependency, The current master build of metro-packager/react-native really doesn’t like dynamic require statements. Importing the current version of moment produces the errorTransformError: /.../moment/moment.js: require() must have a single string literal argument
moment/moment#4187 fixes the issue in
moment.js
.I'm opening this issue because once that PR is merged, the
moment
dependency inmoment-timezone
needs to be updated to capture these changes.thanks for the awesome lib!
The text was updated successfully, but these errors were encountered: