prscX / react-native-bottom-action-sheet

React Native: Native Bottom Action Sheet
Apache License 2.0
633 stars 48 forks source link

Failed when running react-native link react-native-bottom-action-sheet #28

Closed idoor88 closed 4 years ago

idoor88 commented 5 years ago

After I successfully ran: npm install react-native-bottom-action-sheet --save then I ran: react-native link react-native-bottom-action-sheet I got the following error:

/Users/work/roadmap/node_modules/@babel/core/lib/config/validation/options.js:113 throw new ReferenceError(unknownOptErr); ^

ReferenceError: Unknown option: .caller. Check out http://babeljs.io/docs/usage/options/ for more information about options. at buildUnknownError (/Users/work/roadmap/node_modules/@babel/core/lib/config/validation/options.js:113:11) at Object.keys.forEach.key (/Users/work/roadmap/node_modules/@babel/core/lib/config/validation/options.js:99:57) at Array.forEach () at validate (/Users/work/roadmap/node_modules/@babel/core/lib/config/validation/options.js:69:21) at loadPrivatePartialConfig (/Users/work/roadmap/node_modules/@babel/core/lib/config/partial.js:38:50) at loadFullConfig (/Users/work/roadmap/node_modules/@babel/core/lib/config/full.js:43:39) at loadOptions (/Users/work/roadmapnode_modules/@babel/core/lib/config/index.js:28:36) at OptionManager.init (/Users/work/roadmap/node_modules/@babel/core/lib/config/index.js:34:12) at compile (/Users/work/roadmap/node_modules/@babel/register/lib/node.js:61:42) at compileHook (/Users/work/roadmap/node_modules/@babel/register/lib/node.js:102:12)

My package.json file has dependencies as following:

"dependencies": { "axios": "0.18.0", "ethers": "3.0.27", "identicon.js": "2.3.2", "mobx": "5.1.0", "mobx-react": "5.2.5", "moment": "2.22.2", "react": "^16.6.1", "react-native": "^0.57.5", "react-native-bottom-action-sheet": "0.0.18", "react-native-camera": "1.2.0", "react-native-modal": "6.5.0", "react-native-permissions": "1.1.1", "react-native-qrcode-svg": "5.1.0", "react-native-sensitive-info": "5.2.4", "react-native-snackbar": "0.5.0", "react-native-svg": "^5.5.1", "react-native-vector-icons": "5.0.0", "react-navigation": "2.12.1" }, "devDependencies": { "@babel/core": "7.0.0-beta.47", "@babel/plugin-proposal-decorators": "7.0.0-beta.47", "@babel/plugin-transform-runtime": "7.0.0-beta.47", "@babel/runtime": "7.0.0-beta.47", "babel-core": "7.0.0-bridge.0", "babel-jest": "23.4.2", "babel-plugin-module-resolver": "3.1.1", "babel-preset-react-native": "5.0.2", "enzyme": "3.5.0", "enzyme-adapter-react-16": "1.3.0", "eslint-config-rallycoding": "3.2.0", "jest": "23.5.0", "jsdom": "12.0.0", "react-native-mock-render": "0.1.1", "react-test-renderer": "16.4.2" }, "jest": { "preset": "react-native", "transform": { "^.+\.js$": "/node_modules/react-native/jest/preprocessor.js" }, "setupTestFrameworkScriptFile": "/config/jest.config.js" }

So would anybody be able to spot what is going on? Thanks IDoor

prscX commented 4 years ago

Thanks @idoor88 for raising the issue.

I would recommend to use latest released version V1.* with RM61+ since it auto links libraries containing native modules.

Let me know incase it does not works.

Thanks </ Pranav >