Closed kristinadarroch closed 1 year ago
@kristinadarroch strange do u indeed see the module in node_modules?
Checking on my local
npx react-native init SampleAppClean
yarn add rn-pendo-sdk
cd ios
pod install --repo-update
importing the following import {withPendoRN, PendoSDK, NavigationLibraryType} from "rn-pendo-sdk";
in App.js
Running the app in Xcode (14.0.1) simulator , running as expected.
Maybe delete the node_module and install again.
If nothing else helps please share sample project I will have a look what might the issue
i am seeing the node modules for this, i have deleted node modules several times and tried to rebuild and still getting the same error
is it an expo project?
it is not an expo project
if u remove the import of Pendo does it compiles? the 2.18 were running with no issues? Do u run it from terminal or Xcode ? (can u try both ways) When u delete all the cache did u kill the Metro? (by killing the terminal) Did u run pod install? Did u try to delete the app and reinstall it? if u create a new project like I did and add pendo will u be able to run it? I mean u definitely see the module so I am not sure why it doesnt recognize it
we were running into no issues, on 2.18 - i removed all references to pendo in our app and am getting the same error. I have tried all the above steps
I am not sure if u remove all the reference to pendo u still see the same error that it cant resolve pendo?
i kept it in my node modules and have the pod changes only, i'm not initializing the library or anything and i'm still getting the error
if u remove pendo totally will it compile ? Do u run it from terminal or Xcode ? (can u try both ways) When u delete all the cache did u kill the Metro, delete the app reset all the caches? (by killing the terminal) if u create a new project like I did and add pendo will u be able to run it?
@kristinadarroch Did u manage to resolve the issue?
@kristinadarroch I am closing the issue feel free to open
Can you try on react native version 0.66.3, sorry was OOO
@MikePendo I am unable to reopen the issue
@MikePendo yes I did follow from here, I think it might be the version of rn 66
@kristinadarroch
npx react-native init SampleAppClean --version 0.66.3
yarn add rn-pendo-sdk
cd ios
pod install --repo-update
importing the following import {withPendoRN, PendoSDK, NavigationLibraryType} from "rn-pendo-sdk"; in App.js Running the app in Xcode (14.0.1) simulator , running as expected.
As a last resort I would suggest t share with me some sample project with the issue and I will look into it
Whenever I upgrade (to 2.19.0 from 2.180.0) I go through all the steps and I keep getting this error.
I go through all the steps and still run into it, I even got another coworker to try it on his end and he is still getting the same error. (this error is after a pod install)
error: Error: Unable to resolve module react/jsx-runtime from /Users/kdarroch/frontend/VisionNxMobile/node_modules/rn-pendo-sdk/lib/pendoRN.js: react/jsx-runtime could not be found within the project or in these directories:
node_modules/rn-pendo-sdk/node_modules
node_modules
../node_modules
If you are sure the module exists, try these steps:
Clear watchman watches: watchman watch-del-all
Delete node_modules and run yarn install
Reset Metro's cache: yarn start --reset-cache
Remove the cache: rm -rf /tmp/metro-*