shapez.io
shapez.io copied to clipboard
Build error — TypeError: exps.toString(...).replaceAll is not a function
ERROR in ./src/js/core/global_registries.js
Module build failed (from ./gulp/mod.js):
TypeError: exps.toString(...).replaceAll is not a function
at multiExports (/PATH/shapez.io/gulp/mod.js:12:41)
at defineFnBody (/PATH/shapez.io/gulp/mod.js:26:20)
at Object.module.exports (/PATH/shapez.io/gulp/mod.js:36:18)
@ ./src/js/game/item_registry.js 1:0-58 7:4-17 8:4-17 9:4-17
@ ./src/js/main.js
@ multi ./src/js/main.js
I receive this error in when running yarn gulp
. Ubuntu, node v12.22.9, what other info might be helpful to fix?
$ yarn -v 1.22.19
replaceAll
is relatively new. Update to Node.js v16 (but not 17; there's a deprecation issue there)
(pro tip: search "replaceAll is not a function" online)
Closing as stale/missing information.