Error Running mobile-preview "Invariant Violation: Native module cannot be null."

Hello, trying to setup the mobile-preview app for component dev. Just trying to run the app in Xcode at this point, not loading any custom libs. I followed the instructions for iOS at: Testing | Adalo

Getting the following errors:

  • on MacOs console:
[Mon Aug 22 2022 19:46:37.309]  BUNDLE  ./index.js 

[Mon Aug 22 2022 19:46:42.453]  WARN     Require cycle: node_modules/@protonapp/proton-runner/lib/ducks/data.js -> node_modules/@protonapp/proton-runner/lib/utils/urls.js -> node_modules/@protonapp/proton-runner/lib/utils/externalCollections.js -> node_modules/@protonapp/proton-runner/lib/utils/dependencies.js -> node_modules/@protonapp/proton-runner/lib/ducks/data.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Mon Aug 22 2022 19:46:42.454]  WARN     Require cycle: node_modules/@protonapp/proton-runner/lib/utils/urls.js -> node_modules/@protonapp/proton-runner/lib/utils/externalCollections.js -> node_modules/@protonapp/proton-runner/lib/utils/dependencies.js -> node_modules/@protonapp/proton-runner/lib/ducks/auth.js -> node_modules/@protonapp/proton-runner/lib/utils/urls.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Mon Aug 22 2022 19:46:42.454]  WARN     Require cycle: node_modules/@protonapp/proton-runner/lib/ducks/index.js -> node_modules/@protonapp/proton-runner/lib/ducks/data.js -> node_modules/@protonapp/proton-runner/lib/utils/urls.js -> node_modules/@protonapp/proton-runner/lib/utils/externalCollections.js -> node_modules/@protonapp/proton-runner/lib/utils/dependencies.js -> node_modules/@protonapp/proton-runner/lib/ducks/index.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
[Mon Aug 22 2022 19:46:42.454]  ERROR    Invariant Violation: Native module cannot be null.
[Mon Aug 22 2022 19:46:42.455]  ERROR    Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
[Mon Aug 22 2022 19:46:43.439]  ERROR    Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
  • on XCode console:
...
2022-08-22 19:54:17.725681-0400 Adalo App[3279:29046] [javascript] Require cycle: node_modules/@protonapp/proton-runner/lib/ducks/index.js -> node_modules/@protonapp/proton-runner/lib/ducks/data.js -> node_modules/@protonapp/proton-runner/lib/utils/urls.js -> node_modules/@protonapp/proton-runner/lib/utils/externalCollections.js -> node_modules/@protonapp/proton-runner/lib/utils/dependencies.js -> node_modules/@protonapp/proton-runner/lib/ducks/index.js

Require cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.
2022-08-22 19:54:17.729367-0400 Adalo App[3279:29046] [javascript] Invariant Violation: Native module cannot be null.
2022-08-22 19:54:17.754632-0400 Adalo App[3279:29046] [javascript] Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
2022-08-22 19:54:17.801232-0400 Adalo App[3279:28866] [native] Running surface LogBox ({
    initialProps =     {
    };
    rootTag = 11;
})
2022-08-22 19:54:17.802090-0400 Adalo App[3279:29046] [javascript] Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication)
2022-08-22 19:54:18.802768-0400 Adalo App[3279:28866] [native] Failed to mount LogBox within 1s

I have tried the un-merged fix at add native modules to package.json by TDH55 · Pull Request #56 · AdaloHQ/mobile-previewer · GitHub, but that made no difference. Other steps just involve redoing the install steps, rebooting system… nothing had any noticeable effect.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.