ayecue / greybel-js

GreyScript transpiler/minifier/interpreter for Grey Hack written in JS.
http://editor.greyscript.org
MIT License
28 stars 7 forks source link

Doesn't seem to work with latest node version #212

Closed ayecue closed 3 months ago

ayecue commented 3 months ago
C:\Users{redacted}\Documents\GitHub\viper-3.0>greybel build main.src
file:///C:/Users/{redacted}/AppData/Roaming/npm/node_modules/greybel-js/bin/index.js:12
import packageJSON from '../package.json' assert { type: 'json' };
                                          ^^^^^^

SyntaxError: Unexpected identifier 'assert'
    at compileSourceTextModule (node:internal/modules/esm/utils:337:16)
    at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:164:18)
    at callTranslator (node:internal/modules/esm/loader:439:14)
    at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:445:30)
    at async ModuleJob._link (node:internal/modules/esm/module_job:106:19)

Node.js v22.5.1

Running greybel with node 22.5.1 results in an error Unexpected identifier 'assert'.