iOS build fails: axios resolves to node entry (crypto) after Adalo packager / RN upgrade

Issue summary (Adalo iOS build)

  • iOS archive fails at
    PhaseScriptExecution Bundle React Native code and images

  • Root error in log:

UnableToResolveError: Unable to resolve module crypto
from node_modules/axios/dist/node/axios.cjs

  • This happens during JS bundling (Metro), not during native compilation.

  • crypto is a Node.js core module and is not available in React Native.

  • Axios is incorrectly resolving to the Node build (axios/dist/node/axios.cjs) instead of the React Native/browser entry.

Context

  • Build log shows:

    • Starting build process with packager upgrade

    • useNewRNVersion: true

    • useNewArchitecture: true

    • React Native 0.77.x

  • This project built successfully before, without code changes.

  • The failure started after the packager / RN environment upgrade on Adalo side.

Conclusion

This is not a project code issue, but a module resolution change caused by Adalo’s updated RN / bundler setup, which makes axios resolve to its Node entry and require crypto.

Question

  • Is this a known issue with the new Adalo RN / New Architecture setup?

  • Is there a recommended fix (e.g. forcing axios to RN/browser entry, polyfill, or disabling New Architecture)?

Hi @Yuki.O,

Are there any private components in your app? A screenshot about the ‘Installed In App’ section?

Have you submitted a support ticket?

Thank you and have a great day!

EDIT : Team is looking at this!

@Yuki.O, this should be fixed now! Would you be able to confirm?

Thank you and have a great day!

2 Likes

Fixed. Thank you.

1 Like

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