React-native-code-push: Unable to resolve module './RestartManager'

Created on 20 Jul 2020  路  3Comments  路  Source: microsoft/react-native-code-push

I configured appcenter and codepush exactly as in the documentation but when I run both on the emulator from android studio and on the device this error appears.

Actual Behavior

110842754_2699398007007458_2601343351188351286_n

Environment

  • react-native-code-push version: ^6.3.0
  • react-native version: 0.60.5
  • appcenter: 3.1.0
  • yarn: 1.7.0

Additional Information
Does this reproduce on a debug build or release build? Both
Does this reproduce on a simulator, or only on a physical device? Both

I integrate it on App.js like this
`class App extends React.Component {

constructor() {
super();
if (Text.defaultProps == null) Text.defaultProps = {};
Text.defaultProps.allowFontScaling = false;
if (TextInput.defaultProps == null) TextInput.defaultProps = {};
TextInput.defaultProps.allowFontScaling = false;
}

render() {
return (


);
}
}

App = codePush(App);

export default App;`

Can anyone please help?

Most helpful comment

@Adr1ann did you have an old version before? I ran across the same issue when upgrading, but ran react-native start --reset-cache - it worked fine from there!

All 3 comments

@Adr1ann did you have an old version before? I ran across the same issue when upgrading, but ran react-native start --reset-cache - it worked fine from there!

That was. Thank you very much. @jgking2

Hi @jgking2
Thanks for your find, I'm sure this should help.

@Adr1ann I'm going to close this issue, if you have any questions or other issues, feel free to reopen it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chrisjrex picture chrisjrex  路  4Comments

SudoPlz picture SudoPlz  路  4Comments

quanzaiyu picture quanzaiyu  路  3Comments

panarasi picture panarasi  路  4Comments

Phredward picture Phredward  路  3Comments