Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to resolve module 'fs' #2

Open
aayushsin opened this issue May 4, 2020 · 2 comments
Open

Unable to resolve module 'fs' #2

aayushsin opened this issue May 4, 2020 · 2 comments

Comments

@aayushsin
Copy link

Hi,
While running 'react-native run-android', I am getting the error: bundling failed: Error: Unable to resolve module fs from node_modules\natural\lib\natural\stemmers\indonesian\stemmer_id.js: fs could not be found within the project.
This happens when I am using the module "recipe-ingredient-parser".
My dependencies include:
"dependencies": {
"@eva-design/eva": "^1.4.0",
"@eva-design/material": "^1.4.0",
"@react-native-community/async-storage": "^1.8.1",
"@react-native-community/masked-view": "^0.1.5",
"@react-native-community/push-notification-ios": "^1.1.0",
"@react-native-firebase/analytics": "^6.4.0",
"@react-native-firebase/app": "^6.4.0",
"@react-native-firebase/auth": "^6.4.0",
"@react-native-firebase/crashlytics": "^6.4.0",
"@react-native-firebase/database": "^6.4.0",
"@react-native-firebase/dynamic-links": "^6.4.0",
"@react-native-firebase/firestore": "^6.4.0",
"@react-native-firebase/iid": "^6.4.0",
"@react-native-firebase/in-app-messaging": "^6.4.0",
"@react-native-firebase/messaging": "^6.4.0",
"@react-native-firebase/perf": "^6.4.0",
"@react-native-firebase/remote-config": "^6.4.0",
"@react-native-firebase/storage": "^6.4.0",
"@react-navigation/bottom-tabs": "^5.0.0",
"@react-navigation/core": "^5.2.1",
"@react-navigation/drawer": "^5.0.0",
"@react-navigation/material-top-tabs": "^5.0.0",
"@react-navigation/native": "^5.0.0",
"@react-navigation/stack": "^5.0.0",
"@ui-kitten/components": "^4.4.0",
"@ui-kitten/date-fns": "^4.4.0",
"@ui-kitten/eva-icons": "^4.4.0",
"@ui-kitten/moment": "^4.4.0",
"axios": "^0.19.2",
"date-fns": "^1.30.1",
"expo": "^36.0.2",
"expo-asset": "^8.0.0",
"expo-constants": "^8.0.0",
"expo-font": "^8.0.0",
"expo-web-browser": "~8.0.0",
"i18next": "^19.3.2",
"ingredients-parser": "^1.4.0",
"moment": "^2.24.0",
"react": "~16.9.0",
"react-dom": "~16.9.0",
"react-i18next": "^11.3.3",
"react-native": "^0.61.5",
"react-native-appearance": "~0.3.1",
"react-native-camera": "^3.19.0",
"react-native-device-info": "^5.5.1",
"react-native-floating-action": "^1.20.0",
"react-native-gesture-handler": "~1.5.0",
"react-native-image-slider-box": "^1.0.12",
"react-native-keyboard-aware-scroll-view": "^0.9.1",
"react-native-permissions": "^2.0.9",
"react-native-push-notification": "^3.1.9",
"react-native-qrcode-scanner": "^1.3.2",
"react-native-reanimated": "~1.4.0",
"react-native-safari-view": "^2.1.0",
"react-native-safe-area-context": "0.6.0",
"react-native-screens": "2.0.0-alpha.12",
"react-native-svg": "9.13.3",
"react-native-swipe-list-view": "^2.3.0",
"react-native-tab-view": "^2.13.0",
"react-native-web": "^0.11.7",
"react-redux": "^7.2.0",
"recipe-ingredient-parser-v2": "^1.1.1",
"redux": "^4.0.5",
"redux-logger": "^3.0.6",
"redux-persist": "^6.0.0",
"redux-thunk": "^2.3.0",
"remote-redux-devtools": "^0.5.16"
},
"devDependencies": {
"@babel/core": "^7.8.3",
"@babel/runtime": "^7.8.3",
"@expo/webpack-config": "^0.10.11",
"@types/lodash": "^4.14.149",
"@types/react": "^16.9.23",
"@types/react-native": "^0.61.20",
"babel-plugin-module-resolver": "^4.0.0",
"babel-preset-expo": "^8.0.0",
"body-parser": "^1.19.0",
"conventional-changelog-cli": "^2.0.21",
"expo-cli": "^3.11.9",
"express": "^4.17.1",
"husky": "^1.1.2",
"jetifier": "^1.6.5",
"lodash": "^4.17.15",
"prettier": "^1.19.1",
"rimraf": "^2.6.2",
"tslint": "^6.0.0",
"tslint-config-prettier": "^1.18.0",
"typescript": "^3.7.5"
}
}

@nickwang0808
Copy link

I believe only nodejs support fs module

@nsafai
Copy link
Owner

nsafai commented Feb 28, 2021

@aayushsin sorry for the delay on my end. Did you ever resolve your issue? Sadly I believe @nickwang0808 may be correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants