Comments (12)
@thiagoterleski Try deleting node_modules
and install again
from native-starter-kit.
@SupriyaKalghatgi I have the same problem. Tried removing the node_modules
and still the same error:
$ react-native link
? What is your CodePush deployment key for Android (hit to ignore)
? What is your CodePush deployment key for Android (hit to ignore)
rnpm-install info Linking react-native-code-push android dependency
rnpm-install info Android module react-native-code-push has been successfully linked
rnpm-install info iOS module react-native-code-push is already linked
"CodePush.h" header already imported.
<>\native-starter-kit\node_modules\react-native-code-push\scripts\postlink\ios\postlink.js:26
var oldJsCodeLocationAssignmentStatement = appDelegateContents.match(/(jsCodeLocation = .*)\n/)[1];
^
TypeError: Cannot read property '1' of null
at Object. (\native-starter-kit\node_modules\react-native-code-push\scripts\postlink\ios\postlink.js:26:96)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (<>\native-starter-kit\node_modules\react-native-code-push\scripts\postlink\run.js:1:63)
at Module._compile (module.js:570:32)
<>\native-starter-kit\node_modules\react-native\local-cli\core\makeCommand.js:19
throw new Error(Error occured during executing "${ command }" command
);
^
Error: Error occured during executing "node node_modules/react-native-code-push/scripts/postlink/run" command
at ChildProcess.prelink (<>/native-starter-kit/node_modules/react-native/local-cli/core/makeCommand.js:19:15)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at maybeClose (internal/child_process.js:877:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
from native-starter-kit.
@thiagoterleski @gouravsood I tried with a fresh install of NSK.
Goes fine by my side.
You can check CodePush Issue #586
from native-starter-kit.
@thiagoterleski @gouravsood Could you build successfully?
from native-starter-kit.
Same error :-(
I removed all node_modules and reinstall, but nothing works..
from native-starter-kit.
@thiagoterleski Check with this #586
If nothing works, then last option left is to link CodePush manually
from native-starter-kit.
@thiagoterleski @SupriyaKalghatgi as suggested in microsoft/react-native-code-push#586 I have upgraded the version of codePush to 1.16.0-beta ("react-native-code-push": "^1.16.0-beta") and has removed the error.
I can't see the same error but the process in command prompt is hanged. Its not completing and hanged at Assets have been successfully linked to your project
. Not sure if this means task completion.
? What is your CodePush deployment key for Android (hit to ignore)
rnpm-install info Linking react-native-code-push android dependency
rnpm-install info Android module react-native-code-push has been successfully linked
rnpm-install info iOS module react-native-code-push is already linked
"CodePush.h" header already imported.
"jsCodeLocation" already pointing to "[CodePush bundleURL]".
"CodePushDeploymentKey" already specified in the plist file.
"getJSBundleFile" is already overridden
"codepush.gradle" is already linked in the build definition
rnpm-install info Linking react-native-vector-icons android dependency
rnpm-install info Android module react-native-vector-icons has been successfully linked
rnpm-install info iOS module react-native-vector-icons is already linked
rnpm-install info Linking assets to ios project
rnpm-install info Linking assets to android project
rnpm-install info Assets have been successfully linked to your project
from native-starter-kit.
@gouravsood This seems to be linked successfully
Try to simulate now
from native-starter-kit.
@gouravsood Did you got the kit running?
from native-starter-kit.
Just to be clear, the fix for this issue is to open package.json and modify
"react-native-code-push": "1.15.0-beta",
to
"react-native-code-push": "1.16.0-beta",
I no longer get the error.
from native-starter-kit.
my package.json does not have react-native-code-push. Any other solution?
from native-starter-kit.
@rashmimhatre100 You can use https://reactnativeseed.com/
starter kit.
from native-starter-kit.
Related Issues (20)
- ERROR Error watching file for changes: EMFILE HOT 2
- How to rename this project HOT 12
- Disable drawer gesture for Drawer HOT 5
- StackNav variable in MainStackRouter.js is promotion to global HOT 1
- after update react native 0.46.4,error out. HOT 4
- (node:404) DeprecationWarning: node --debug is deprecated. Please use node --inspect instead. HOT 1
- react version problem HOT 5
- yarn install error HOT 4
- SDK Build Tools Version Used by Starter Kit Out of Date HOT 1
- How to Retrieve data from AsyncStorage
- Codepush crashes on Android but works on iOS
- Login button's first press not fired HOT 1
- What does the @ symbol do in javascript imports? HOT 2
- Drawer Navigating Animation HOT 8
- Picker itemTextStyle,itemTextStyle,textStyle not working HOT 1
- Could not determine java version from '10.0.1'. ??
- How i run this project on expo ? HOT 2
- var oldJsCodeLocationAssignmentStatement = appDelegateContents.match(/(jsCodeLocation = .*)/)[1]; HOT 1
- Update?
- Unable to resolve module "color" from "js\themes\base-theme.js"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from native-starter-kit.