Coder Social home page Coder Social logo

Comments (12)

SupriyaKalghatgi avatar SupriyaKalghatgi commented on July 22, 2024

@thiagoterleski Try deleting node_modules and install again

from native-starter-kit.

gouravsood avatar gouravsood commented on July 22, 2024

@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.

SupriyaKalghatgi avatar SupriyaKalghatgi commented on July 22, 2024

@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.

SupriyaKalghatgi avatar SupriyaKalghatgi commented on July 22, 2024

@thiagoterleski @gouravsood Could you build successfully?

from native-starter-kit.

thiagoterleski avatar thiagoterleski commented on July 22, 2024

Same error :-(

I removed all node_modules and reinstall, but nothing works..

from native-starter-kit.

SupriyaKalghatgi avatar SupriyaKalghatgi commented on July 22, 2024

@thiagoterleski Check with this #586

If nothing works, then last option left is to link CodePush manually

from native-starter-kit.

gouravsood avatar gouravsood commented on July 22, 2024

@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.

SupriyaKalghatgi avatar SupriyaKalghatgi commented on July 22, 2024

@gouravsood This seems to be linked successfully
Try to simulate now

from native-starter-kit.

SupriyaKalghatgi avatar SupriyaKalghatgi commented on July 22, 2024

@gouravsood Did you got the kit running?

from native-starter-kit.

TheRealJAG avatar TheRealJAG commented on July 22, 2024

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.

rashmimhatre100 avatar rashmimhatre100 commented on July 22, 2024

my package.json does not have react-native-code-push. Any other solution?

from native-starter-kit.

GeekRishabh avatar GeekRishabh commented on July 22, 2024

@rashmimhatre100 You can use https://reactnativeseed.com/ starter kit.

from native-starter-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.