bamlab / react-native-formik

Set of helpers to make form awesome with React Native and Formik
MIT License
398 stars 50 forks source link

dependency issues #58

Open bruscantini opened 5 years ago

bruscantini commented 5 years ago

Something broke for me going from v1.7.1 to v1.7.4:

Unable to resolve "@bam.tech/react-native-modalbox" from "node_modules/react-native-formik/src/withPickerValues/KeyboardModal.js"

Setting to strictly "react-native-formik": "1.7.1", in package.json fixed it for me.

Almouro commented 5 years ago

Hi @bruscantini, "@bam.tech/react-native-modalbox" is no longer installed by the repo, thanks to @louiszawadzki, we went back to "react-native-modalbox". Where is this error popping from? Maybe a packager restart is needed?

bruscantini commented 5 years ago

Hi @Almouro I'm using Expo, so it's after I run 'expo start'. These are my dependencies:

"dependencies": { "@expo/vector-icons": "^9.0.0", "expo": "^32.0.0", "firebase": "^5.8.1", "formik": "^1.4.2", "lodash": "^4.17.11", "prop-types": "^15.7.2", "query-string": "^6.2.0", "react": "16.5.0", "react-native": "https://github.com/expo/react-native/archive/sdk-32.0.0.tar.gz", "react-native-animatable": "^1.3.1", "react-native-button": "^2.3.0", "react-native-collapsible": "^1.4.0", "react-native-easy-grid": "^0.2.0", "react-native-formik": "^1.7.4", "react-native-gifted-chat": "^0.7.2", "react-native-global-props": "^1.1.5", "react-native-jwt-io": "^1.0.3", "react-native-keyboard-aware-scroll-view": "^0.8.0", "react-native-loading-spinner-overlay": "^1.0.1", "react-native-material-textfield": "^0.12.0", "react-native-modal": "^7.0.2", "react-native-switch": "^1.5.0", "react-navigation": "3.0.9", "react-redux": "^6.0.0", "recompose": "^0.30.0", "redux": "^4.0.1", "redux-thunk": "^2.3.0", "uuid": "^3.3.2", "yup": "^0.26.10" },

I have tried npm rm -rf node_modules; npm i; npm start;

Almouro commented 5 years ago

@bruscantini This is strange because in the new KeyboardModal code I can't find any reference anymore to "@bam.tech/react-native-modalbox" in 1.7.4, especially from this commit

Could this be a cache issue on expo?