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.
-
cryptois 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)?