Closed vikaskathuria closed 2 years ago
Which version do you use?
Try to remove node_modules and install them again rm -rf node_modules
and run npm i
or yarn
reset cache also may help npm start -- --reset-cache
HI Thanks for reply Its still not working I am using "react-native": "0.68.0", "react": "17.0.2", "react-native-select-dropdown": "^1.11.0",
I've tried using the same versions and it's working fine for Android and iOS. you can kill node processes killall -9 node
and remove node_module and install again
I was having the same error after accidentally doing an npm update, and upgrading all of my modules. I'm compiling for the web using the webpack that's built into Expo. I downgraded react-native-select-dropdown to version 1.7.0 and it works now.
npm install react-native-select-dropdown@1.7.0
Does this way to import/export functions doesn't work for some node versions ??
export const findIndexInArr = () => {...}
import {findIndexInArr} from './helpers/findIndexInArr';