When trying to bundle the lib into my project Im getting this error after updating from 1.6.5 to now 1.9.2.
error: bundling failed: Error: While trying to resolve modulemomentfrom file/Users/filipe/dev/workspace/my-app/node_modules/react-native-masked-text/dist/lib/masks/datetime.mask.js, the package/Users/filipe/dev/workspace/my-app/node_modules/react-native-masked-text/node_modules/moment/package.jsonwas successfully found. However, this package itself specifies amainmodule field that could not be resolved (/Users/filipe/dev/workspace/my-app/node_modules/react-native-masked-text/node_modules/moment/moment.js`. Indeed, none of these files exist:
When trying to bundle the lib into my project Im getting this error after updating from 1.6.5 to now 1.9.2.
error: bundling failed: Error: While trying to resolve module
momentfrom file
/Users/filipe/dev/workspace/my-app/node_modules/react-native-masked-text/dist/lib/masks/datetime.mask.js, the package
/Users/filipe/dev/workspace/my-app/node_modules/react-native-masked-text/node_modules/moment/package.jsonwas successfully found. However, this package itself specifies a
mainmodule field that could not be resolved (
/Users/filipe/dev/workspace/my-app/node_modules/react-native-masked-text/node_modules/moment/moment.js`. Indeed, none of these files exist:/Users/filipe/dev/workspace/my-app/node_modules/react-native-masked-text/node_modules/moment/moment.js(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json)