Failed to load configuration of your project - React Native 0.70.5 - react-native

After upgrading my react-native version from 0.68.5 to 0.70.5. I am constantly getting this error on starting the JS bundler.
I have tried multiple things like upgrading the #react-native-community/cli version in my package.json file, etc. But nothing worked.
Does anyone have any idea about this issue?
Thanks in advance!

Related

Cannot read property 'cache' of undefined error after upgrading React Native

Metro bundler building fails when running react-native app with the following error,
bundling failed:
node_modules/react-native-draftjs-render/index.js:app/node_modules/react-native-draftjs-render/index.js:
Cannot read property 'cache' of undefined
How to fix this..? I'm in the middle of upgrading my react-native project to 0.61.5. (I'm really new to react-native)
I come across this issue again while upgrading my project to React Native 0.63.2. I don't remember how I resolved this last time. This time I was using react-native-draftjs-render version 2.9.0 and the issue resolved after downgrading to 2.8.3.

error Failed to fetch diff for react-native#x.x.x Maybe it's not released yet? upgrading react-native from 0.59.4 to 0.60.6

I am trying to upgrade from react-native 0.59.4 to 0.60.6 but I am getting below messages:
info Fetching diff between v0.59.4 and v0.60.6...
error Failed to fetch diff for react-native#0.60.6. Maybe it's not released yet?
info For available releases to diff see:
https://github.com/react-native-community/rn-diff-purge#version-changes
This is the command I use:
react-native upgrade 0.60.6
Some say this could be because of proxy configuration but I am not behind a proxy. Any help is appreciated. Cheers.
You can do this as follows.
yarn add react-native #*version*
Pay attention to this.
If you're on a version <= 0.59.10 and want to go to e.g. 0.61, you need to upgrade to 0.60 first, then you can run the upgrader to get up to 0.61.
Found it! Apparently, react-native upgrade command is not working for all versions of react-native. I tried it for version 0.60.0 and it worked.
react-native upgrade 0.60.0
After this running react-native upgrade upgraded to the latest version.
P.S. There will be some files that won't be upgraded automatically. You will need to update them yourself.

Cannot find module 'babel-plugin-graphql-tag' when running App with React Native 0.59.1

I ran into that strange issue after upgrading to React Native 0.59.1 and trying to run my app on iOS devices in xcode.
Loading dependency graph, done.
error: bundling failed: Error: Cannot find module 'babel-plugin-graphql-tag' from '/Users/me/react_projects/my-app'
- If you want to resolve "graphql-tag", use "module:graphql-tag"
I tried to install some potentially missing packages but it does not help. I can post my package.json if that helps.
Many thanks in advance for any help!

"babelHelpers.interopRequireDefault is not a function" when upgrading to React Native 0.16.0-rc

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.

TransformError react native 0.7.1

when i build my react-native application using Xcode and launch it, the emulator shows the error red screen with the following message:
TransformError: /path/to/app/index.ios.js: /path/to/app/index.ios.js: Cannot read property 'line' of undefined]
message: 'TransformError: /path/to/app/index.ios.js: /path/to/app/index.ios.js: Cannot read property \'line\' of undefined',
I've built one application a month ago with react-native v 0.4.x and i've never had this message.
I've tried with node 0.12 and different versions of iojs
I'm using react-native v0.7.1 and xCode v6.4
The project is totally empty of any code wrote by me, i just:
$ react-native init reactNat (with react-native-cli v0.1.4)
I read that now react-native is directly integrated with babel and I suppose the problem came from that but with no more clues.
If anybody have an idea it would be very nice!
Thanks guys
You'll need to use node.js >= 4.0, as per the 'getting started' guide. You can use nvm to install multiple node versions on your system.