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.

Create @nrwl/web:lib with --js flag?

See original GitHub issue

Expected Behavior

I would think that running nx g @nrwl/web:lib myLib --js would be able to run and generate a web library in js instead of ts.

Documentation says:

TypeScript is a great choice for many teams, but not for everyone. If you want to use Nx with JavaScript, simply pass --js to all generate commands

(Emphasis mine) Source

I am currently only using react and flow as type checker, and want to opt-out of typescript, even for web libraries.

Current Behavior

What is the current behavior? It outputs Could not match option 'js' to the @nrwl/web:library schema.

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
antipalindromecommented, Jun 23, 2020

@shreyansh-zazz If you feel so strongly I’m sure you’d be welcomed to create a PR with clearer documentation. Like all software there will be bugs and gaps in features as well as in the documentation.

I agree the documentation was somewhat unclear, but I can see how this got missed and I’m glad they’re taking a look at it now.

0reactions
briermaycommented, Oct 14, 2020

you claim to have fixed this, but its not fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Guide to Getting Started Quickly With JavaScript Feature Flags
We're going to create a new REST endpoint with the purpose of retrieving config information. This will allow the client to ask the...
Read more >
NodeJS: how to create a flag - javascript - Stack Overflow
I am struggling how to create a flag in nodejs. Please refer to small code below to get my idea var isLogged =...
Read more >
Node.js feature flags: a practical getting started guide with ...
A practical example in a Node.js express application that enables showing and hiding icons depending on a Flagsmith feature flag.
Read more >
How to refresh a coded block when a flag is clicked in it?
The easiest way would be to use the module Block Refresh. With this module you can set up any block to be reloaded...
Read more >
Get Started with Feature Flags in Node - Split Blog
Develop a small application programming interface with Node.js and Express, and deploy feature flags to toggle functionality.
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