question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Javascript --js command giving error on Express Generate

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
ilkkacommented, Jun 23, 2020

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 😃

1reaction
davidrhoderickcommented, Apr 18, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Express generator error while running "SET DEBUG=myapp ...
For Windows PowerShell, use this command: $env:DEBUG='myapp:*'; npm start.
Read more >
A Guide to Error Handling in Express.js | Scout APM Blog
Step 1: Create and Setup Project​​ First, create an empty folder, cd into it, generate an npm project, and install the dependencies. Then,...
Read more >
Generating Errors using HTTP-errors module in Node.js
HTTP-errors module is used for generating errors for Node.js applications. It is very easy to use. We can use it with express, Koa,...
Read more >
15 Common Error Codes in Node.js and How to Fix Them
Essentially, this error indicates that the user executing the script does not have the required permission to access a resource. A quick fix...
Read more >
Error Handling in Express - Reflectoring
The application in index.js does not contain any error handling code as yet. Node.js applications crash when they encounter unhandled exceptions ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found