reactiverse / es4x

🚀 fast JavaScript 4 Eclipse Vert.x
https://reactiverse.io/es4x/
Apache License 2.0
884 stars 75 forks source link

[TypeScript] /bin/sh: 1: <project name> not found #358

Open uboznikov opened 4 years ago

uboznikov commented 4 years ago

Hi there,

I'm using the latest es4x version.

I have created a TypeScript project named es4xts, and when I run yarnpkg start, I get the following error:

yarn run v1.22.4 $ tsc $ es4xts /bin/sh: 1: es4xts: not found error Command failed with exit code 127. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Also, in index.ts I needed to change:

/// <reference types="@vertx/core/runtime" />

to

/// <reference types="@types/es4x" /> /// <reference types="@vertx/core" />

because the vertx object is not getting recognized.

Thanks in advance.

javawcy commented 4 years ago

Also to me,here is the diff to example video. image image

pmlopes commented 4 years ago

I'm improving the init command to support ts, can you check if this template works for you?

https://github.com/reactiverse/es4x/tree/develop/pm/src/main/resources/META-INF/es4x-commands/init/ts

Be aware that it assumes versions that haven't been released yet so you need to change then on the package.json