shapez.io icon indicating copy to clipboard operation
shapez.io copied to clipboard

Build error — TypeError: exps.toString(...).replaceAll is not a function

Open mikhail-dvorkin opened this issue 1 year ago • 2 comments

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?

mikhail-dvorkin avatar Sep 06 '22 10:09 mikhail-dvorkin

$ yarn -v 1.22.19

mikhail-dvorkin avatar Sep 06 '22 10:09 mikhail-dvorkin

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)

EmeraldBlock avatar Sep 06 '22 20:09 EmeraldBlock

Closing as stale/missing information.

dengr1065 avatar Nov 10 '22 15:11 dengr1065