Closed kevin2y closed 4 years ago
it's my fault. I once had change "@" to my src fold "js" in one project with file '.babelrc'. and then all project has problem before reboot this computer.
delete "rootPathPrefix" about "@" in file ".babelrc", and reboot your computer.
I create new react-native app and add react-native-scrollable-tab-view
yarn add react-native-scrollable-tab-view
I had receive an error when run a simple example
**error: Error: Unable to resolve module
../../js/react-native-community/viewpager
fromnode_modules/react-native-scrollable-tab-view/index.js
:None of these files exist:
Steps to Reproduce
it is my package.json flow
{ "name": "AwesomeProject", "version": "0.0.1", "private": true, "scripts": { "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", "test": "jest", "lint": "eslint ." }, "dependencies": { "react": "16.13.1", "react-native": "0.63.3", "react-native-scrollable-tab-view": "^1.0.0" }, "devDependencies": { "@babel/core": "^7.12.3", "@babel/runtime": "^7.12.1", "@react-native-community/eslint-config": "^2.0.0", "babel-jest": "^26.6.1", "eslint": "^7.12.1", "jest": "^26.6.1", "metro-react-native-babel-preset": "^0.63.0", "react-test-renderer": "16.13.1" }, "jest": { "preset": "react-native" } }
I check folder "node_modules", it contains @react-native-community/viewpager yarn version is v1.22.10 node version is v10.22.1
thx.
Expected Behavior
Actual Behavior