Nx: Javascript --js command giving error on Express Generate

Created on 10 Apr 2020  路  6Comments  路  Source: nrwl/nx

Reading this guide
https://nx.dev/react/guides/js-and-ts is states

simply pass --js to all generate commands

Running

nx generate @nrwl/express:application communications --js

brings up error

Could not match option 'js' to the @nrwl/express:application schema.

I am on MacOSX Mojave
Node v12.14.1

Latest NX - just installed

Thanks

node bug

Most helpful comment

If you look at the options schema for the express application generator, you will notice that it does not, in fact, support the --js option. Caught me off guard as well. The docs are definitely overselling it :)

All 6 comments

I'm just trying nx and I'm getting this same error.

Any news on this?

Any news? I am trying to create a node application with js, not ts. Why it is so hard, I am also getting the same error.

If you look at the options schema for the express application generator, you will notice that it does not, in fact, support the --js option. Caught me off guard as well. The docs are definitely overselling it :)

@ilkka I spend my whole day digging into so many things like debugging, js/ts, etc., none of them worked according to the documentation.

+1

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jon301 picture jon301  路  3Comments

MichaelWarneke picture MichaelWarneke  路  3Comments

zpydee picture zpydee  路  3Comments

joelmuskwe picture joelmuskwe  路  3Comments

dereklin picture dereklin  路  3Comments