"Maximum call stack size exceeded" in bundle caused by babelHelpers #20476
Labels
Platform: Linux
Building on Linux.
Ran Commands
One of our bots successfully processed a command.
Resolution: Locked
This issue was locked by the bot.
Environment
Environment:
OS: Linux 4.4
Node: 9.4.0
Yarn: Not Found
npm: 6.2.0
Watchman: Not Found
Xcode: N/A
Android Studio: Not Found
Packages: (wanted => installed)
react: ^16.3.1 => 16.4.0
react-native: ^0.55.4 => 0.55.4
Description
Currently trying to produce a bundle for both our Android and iOS applications so we can release internal test builds before releasing a new update to our apps in the store.
The bundle is produced fine however error messages appear whenever trying to use any RN component in our Android / iOS apps.
**iOS error message **
Android error message
Line 1214 of the android bundle shows this line
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== (typeof Symbol === "function" ? Symbol.prototype : "@@prototype") ? "symbol" : typeof obj === "undefined" ? "undefined" : babelHelpers.typeof(obj);
Which is apart of the following code block.
I've managed to locate whenever this error starting appearing in our earlier commits and the only way I was successful in getting rid of it was by removing our .babelrc config and updating our paths so they're using relative paths and not absolute paths (using the alias in the .babelrc config).
Ideally we want to use the alias as it makes it a lot easier whenever moving files in the project and also easier for testing.
I've seen two similar issues already having been posted. Neither of which offers an insightful solution.
#19620
#19788
In case it helps here is both our .babelrc file and package.json
.babelrc
package.json
The text was updated successfully, but these errors were encountered: