The problem comes soon after react-native init tech_stack1, react-native run-iso command and the last Xcode update (9.1).
It alternate with "No bundle URL present".
This my package.json
"name": "tech_stack1",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.0.0",
"react-native": "0.50.0"
},
"devDependencies": {
"babel-jest": "21.2.0",
"babel-preset-react-native": "4.0.0",
"jest": "21.2.1",
"react-test-renderer": "16.0.0"
},
"jest": {
"preset": "react-native"
}
After some upgrades to #latest versions of react-native, redux and react-redux I was able to get rid of this error, also by performing a react-native start command in a new terminal window ( to get rid of no bundle URL present).
Related
I tried to use react-native-beacons-manger to use beacons in react native, but I got an error. So I try to create lower version react-native and run. But it made an error.
$ react-native init BeaconTest --version 0.59.0
$ react-native run-ios
An error looks like
Failed to load bundle(http://localhost:801/index.bundle?platform=ios&dev=true&minify=false with error:(Could not connect to development server)
my package.json file
{
"name": "BeaconTest",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.8.3",
"react-native": "0.59.0"
},
"devDependencies": {
"#babel/core": "^7.7.2",
"#babel/runtime": "^7.7.2",
"babel-jest": "^24.9.0",
"jest": "^24.9.0",
"metro-react-native-babel-preset": "^0.57.0",
"react-test-renderer": "16.8.3"
},
"jest": {
"preset": "react-native"
}
}
I also tried
$ react-native init Test
$ npm install react-native#0.59.0
but it also made some errors
please let me know how to create low version react-native so that I can use beacon package (react-native-beacons-managers)
I am trying to create new project with react-native cli, but when I create a new project I am receiving the following error message:
react-native > create-react-class > fbjs > core-js#1.2.7: core-js#<2.6.8 is no longer maintained. Please, upgrade to core-js#3 or at least to actual version of core-js#2.
Listed below is the contents of my package.json file:
{
"name": "EmojiDictRN",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.8.3",
"react-native": "0.59.8"
},
"devDependencies": {
"#babel/core": "^7.4.5",
"#babel/runtime": "^7.4.5",
"babel-jest": "^24.8.0",
"jest": "^24.8.0",
"metro-react-native-babel-preset": "^0.54.1",
"react-test-renderer": "16.8.3"
},
"jest": {
"preset": "react-native"
}
}
To see the full output from my terminal please click here. Any ideas on how to resolve this warning message?
Any help would be greatly appreciated!
Download and save the version of the core-js module which is requested within your warning message:
npm install --save core-js#^3
This will update the core-js dependency for your react-native project to use version ^3.x.x which is still being actively maintained.
Hopefully that helps!
While creating new react-native project using the cli react-native init the project gets created successfully but when running it with cli react-native run-android it started giving following error.
Error
Here is the package.json file for the newly created project.
{
"name": "TempApp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.4.1",
"react-native": "0.56.0"
},
"devDependencies": {
"babel-jest": "23.4.2",
"babel-preset-react-native": "5",
"jest": "23.5.0",
"react-test-renderer": "16.4.1"
},
"jest": {
"preset": "react-native"
}
}
after a long hurdle, I just replaced a package.json file from one of my old project to the new one then the new project is started running with the cli.
here is my new package.json
{
"name": "TempApp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.3.1",
"react-native": "0.55.4",
"react-native-checkbox": "^2.0.0",
"react-native-popup-menu": "^0.13.1",
"react-native-shared-preferences": "^1.0.0"
},
"devDependencies": {
"babel-jest": "22.4.3",
"babel-preset-react-native": "4.0.0",
"jest": "22.4.3",
"react-test-renderer": "16.3.1"
},
"jest": {
"preset": "react-native"
}
}
if you compare these json file, you can say that the project is running with slightly older version of react-native.
My question here is, is there any stable version recommendation from react-native ?
How the issue appeared ?
1 - I started a new blank react-native project using react-native init projectName
2 - I moved screens and components from exiting project to the new one
3 - I installed the required npm modules that's I use inside the project (including expo) npm install --save expo
that's the error which I got "check the below image" , however I installed expo
that's my package.json file
{
"name": "taplot",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"axios": "^0.18.0",
"expo": "^29.0.0",
"native-base": "^2.7.2",
"react": "16.4.1",
"react-native": "0.56.0",
"react-native-easy-grid": "^0.2.0",
"react-native-flags": "^1.0.0",
"react-native-icon-badge": "^1.1.3",
"react-native-public-ip": "^1.0.0",
"react-native-toaster": "^1.2.2",
"react-navigation": "^2.9.3"
},
"devDependencies": {
"babel-jest": "23.4.2",
"babel-preset-react-native": "5.0.2",
"jest": "23.4.2",
"react-test-renderer": "16.4.1"
},
"jest": {
"preset": "react-native"
}
}
I'm creating a simple react-native project, but it unexpected run into errors when I upgrade expo to version 24.0.0.
app.json:
{
"name": "TipCalculator",
"displayName": "rn_tip_calculator",
"expo": {
"name": "TipCalculator",
"slug": "rn-tip-calculator",
"sdkVersion": "24.0.0"
}
}
package.json:
{
"name": "rn_tip_calculator",
"version": "0.0.1",
"private": true,
"author": "GeniusDoan <nhoxbypass#gmail.com> (https://github.com/nhoxbypass)",
"repository": "https://github.com/HCMUS-IceTeaViet-SE/rn_tip_calculator",
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"expo": "^24.0.0",
"react": "^16.0.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-24.0.0.tar.gz",
"react-native-deprecated-custom-components": "^0.1.0",
"react-native-i18n": "^1.0.0",
"react-native-segmented-control-tab": "^3.0.1"
},
"devDependencies": {
"babel-jest": "19.0.0",
"babel-preset-react-native": "1.9.1",
"jest": "19.0.2",
"react-test-renderer": "16.0.0"
},
"jest": {
"preset": "react-native"
}
}
This is known-issue in November 2017, I've read many Github issues about it. It happens with react-native v50.0.
But in my project I'm using the latest react-native version v51.0, but it STILL NOT working. I'm running my app on Android 6.0.
Any help will be appreciated!
This issues seems to be a React Native bug, which is has been discussed here with temporarily solution described here.
https://github.com/facebook/react-native/issues/16522#issuecomment-345513116
Expo SDK 26 still an issue as per the description above this comment that is many characters long