minity-script / minity

Minity is a scripting language for Vanilla Minecraft
https://minity-script.github.io
GNU General Public License v3.0
23 stars 0 forks source link

There is no information what Node version project targets, therefore it crashes on Node 14 (and below) #5

Open AgainPsychoX opened 2 years ago

AgainPsychoX commented 2 years ago
PS G:\Minecraft\MultiMC\instances\1.17.1\.minecraft\saves\House3\datapacks\minecarts-nowadays> minity help
C:\Program Files\nvm\v14.18.1\node_modules\minity\bin\Project.js:349
    buildDirectory??=this.buildDirectory;
                  ^^^

SyntaxError: Unexpected token '??='
    at wrapSafe (internal/modules/cjs/loader.js:1001:16)
    at Module._compile (internal/modules/cjs/loader.js:1049:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:93:18)
    at Object.<anonymous> (C:\Program Files\nvm\v14.18.1\node_modules\minity\bin\commands.js:2:46)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Logical_nullish_assignment

https://node.green/#ES2021-features-Logical-Assignment-----basic-support