After updating my android studio version to Chipmunk 2021.2.1 patch 1 (I think I had bumble bee before). I get this "can't find variable require" error. I tried rolling my app back to a 24 days old stable build to check if it was an error in my code but on my stable branch, I still get the same "can't find variable require " error.
The app is a react native app (no expo) when running the app directly from react-native the same error still occurs.
thanks in advance
Related
I recently cleaned my computer (factory reset) and i'm trying to get back into my development cadence and I'm trying to integrate a package that helps keep my react-native camera screen awake so users can record videos longer than 30 seconds without the screen going to sleep.
I've tried downloading packages like "react-native-keep-awake" and "react-native-background-timer" but when i try and import these packages it says "null is not an object (evaluating {package})"
Every other package i've downloaded works correctly (even more sophisticated packages like react-native-vision-camera), but these packages always return that error!
wondering if theres something wrong with my dev setup (ie node)? but im not sure since every other package downloads and works correctly
for these 'keep-awake' packages i try 'react native link {package}' but that doesnt work since i'm using cocoapods
any ideas?
This is a brand new issue. I reviewed the code, and no changes have been made to the libraries in 3 months. All of a sudden I am getting the error "Could not determine artifacts for com.facebook.soloader:soloader:0.8.2:" I tried updating this to 0.9.0+ based on React Native: App crashes on start due to SoLoader issue, but then I just got a bunch of "xxxx library uses a deprecated API". I have cleaned the project multiple times, invalidated caches, restarted computer, etc. but I can't find anything about how to fix this problem, nor do I know why it started happening. Does anyone have any insight?
I'm using react native to build my apps and thought to give Microsoft app center a chance.
The main issue I have is that I cannot finish the build.
This should be a non-production build that will be tested by the QA team.
This is the error I get:
I have found the issue.
I was the Gradle version, there is no 7.3**
The latest version is 7.1.1 so when I changed the URL to gradle-7.1.1-all.zip It worked.
I am trying to get react-native-sound to work on my react-native app but I keep getting this error: undefined is not an object (evaluating 'RNSound.IsAndroid').
I have noticed that any people have received this error and I found a relevant question already on here, but I am super noobie and don't understand most of the solutions people have suggested.
I have tried react-native link react-native-sound, but it did not change anything. From reading people's comments I must now manually Install, but I don't really understand what I am doing. Even step one... go to android/app/src/main/java/.../MainApplication.java. I don't understand this as I can't see an android file anywhere. I am using Visual Studio (windows 10) and expo cli with my own Pixel 2 plugged in (hence I am not using Android Studio).
Any help would be fantastic.
We can't use native modules with projects which is created by expo cli.
So, either you can use alternative package for expo which is https://docs.expo.io/versions/latest/sdk/audio/
or if you are familiar with native development, you can eject your project from expo to use native android/ios project with react-native cli.
I upgraded to react-native 0.16.0-rc, ran npm install, then ran react-native upgrade. When trying to launch the iOS app in a simulator (or device, doesn't matter) I get the error:
[error][tid:com.facebook.React.RCTExceptionsManagerQueue] Unhandled JS Exception: babelHelpers.interopRequireDefault is not a function. (In 'babelHelpers.interopRequireDefault(_reactNative)', 'babelHelpers.interopRequireDefault' is undefined)
I've just about run out of ideas here. Is there something I need to add to my xcode project maybe? Merging the latest react-native templates into mine was a nightmare so maybe something got messed up there.
This problem is discussed in this Github issue and fixed by this commit. You can apply this patch temporarily until it is merged into the project with the version 0.16.