tyrian
tyrian copied to clipboard
Full-featured TypeScript on JVM
Hi, I was trying to build the example you provide in the repo by running `tyrian build ./src/main.ts` from within the http-server folder. But I got following error ``` Users/abaykal/.nvm/versions/node/v18.2.0/lib/node_modules/tyrian/dist/parser/index.js:26...
internal/modules/cjs/loader.js:1015 throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath); ^ Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/lxs/.nvm/versions/node/v12.22.10/lib/node_modules/tyrian/node_modules/antlr4/src/antlr4/index.js require() of ES modules is not supported. require() of /home/lxs/.nvm/versions/node/v12.22.10/lib/node_modules/tyrian/node_modules/antlr4/src/antlr4/index.js from /home/lxs/.nvm/versions/node/v12.22.10/lib/node_modules/tyrian/dist/parser/index.js is...
It would be awesome if we could support a syntax like this for using java types, instead of the current way: ```typescript import { System } from "java.lang" System.out.println("Test"); ```...