-
Notifications
You must be signed in to change notification settings - Fork 56
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 install dependency #401
Comments
@K-sivasankar something is off. Could you run |
Hi @wmathurin , Yes, I tried with new project setup again , now It is showing same error for [email protected]. Also my current forcereact version is 12.2.0. Note: I Referred #376. But it is not works. |
@K-sivasankar I had the same issue, not sure about whats causing this, but I managed to make the setup work by forking the project and adding the types definition to package.json. You can test it out, by using my fork of SDK repo here; https://github.com/sidhu18/SalesforceMobileSDK-ReactNative/tree/master Usage: |
Okay @sidhu18 Let me try it out. Edited: I installed dependency library then i run pod install for ios. I am receiving following error, seems like there is issue in Ruby. Do you have any idea to resolve it, i tried some solution from search, nothing work. /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': dlopen(/Library/Ruby/Gems/2.6.0/gems/strscan-3.1.0/lib/strscan.bundle, 0x0009): tried: '/Library/Ruby/Gems/2.6.0/gems/strscan-3.1.0/lib/strscan.bundle' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Library/Ruby/Gems/2.6.0/gems/strscan-3.1.0/lib/strscan.bundle' (no such file), '/Library/Ruby/Gems/2.6.0/gems/strscan-3.1.0/lib/strscan.bundle' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')) - /Library/Ruby/ |
If you are using M-chip based macs, then this could be fixed by adding |
Hi @sidhu18 , It is not related with app running issue, It is related with add additional library in my project. any way i will try this. |
Hi , I created New react native app with following steps, I installed all pre request like npm, forcereact and etc.
Step1 . Created project with 'forcereact create' and completed the all dependency installation and run the app in ios and android, After that , I try to add any library like npm install 'library name'. I am facing the error
npm error code 1
npm error git dep preparation failed
npm error command /usr/local/bin/node /usr/local/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/Users/sivasankark/.npm --prefer-offline=false --prefer-online=false --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm error > [email protected] prepublish
npm error > npm run build
npm error
npm error
npm error > [email protected] build
npm error > tsc --build
npm error
npm error error TS2688: Cannot find type definition file for 'react-native'.
npm error The file is in the program because:
npm error Entry point of type library 'react-native' specified in compilerOptions
npm error npm warn using --force Recommended protections disabled.
Note: I am installed force react v12.2.0 and Setup salesforce sdk v12.2.0 and react native force V12.2.0
I tried with adding "@types/react-native": "0.73.0", in my package.json. But it is not worked, Any one have solution for this?
The text was updated successfully, but these errors were encountered: