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.

unknown option: --typescript if --typescript is before project name

See original GitHub issue

Is this a bug report?

Yes!

Environment

Environment Info:

  System:
    OS: Linux 5.0 NixOS 19.09pre173166.373488e6f4c (Loris) 19.09pre173166.373488e6f4c (Loris)
    CPU: (16) x64 AMD Ryzen 7 1700 Eight-Core Processor
  Binaries:
    Node: 8.15.1 - ~/.nix-profile/bin/node
    Yarn: 1.15.2 - ~/.nix-profile/bin/yarn
    npm: 6.4.1 - ~/.nix-profile/bin/npm
  Browsers:
    Chrome: Not Found
    Firefox: Not Found
  npmPackages:
    react: Not Found
    react-dom: Not Found
    react-scripts: Not Found
  npmGlobalPackages:
    create-react-app: 3.0.1

Steps to Reproduce

  1. run create-react-app --typescript foo, observe that it throws error: unknown option –typescript’`
  2. run create-react-app foo --typescript, observe that it creates the project successfully

Expected Behavior

The project would be created successfully

Actual Behavior

The command threw an error, saying --typescript is an unknown option

Example

Issue Analytics

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

github_iconTop GitHub Comments

4reactions
jumattoscommented, Aug 13, 2019

I understand this is “expected behavior” but it’s a bad user experience nonetheless.

1reaction
stale[bot]commented, Aug 9, 2019

This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Typescript unknown options on vscode tasks file
It looks like the task is picking up an earlier version of tsc . I believe the -p flag was added in Typescript...
Read more >
Documentation - TypeScript 3.0
TypeScript 3.0 introduces a new top type unknown . unknown is the type-safe counterpart of any . Anything is assignable to unknown ,...
Read more >
Documentation - Do's and Don'ts - TypeScript
Don't use any as a type unless you are in the process of migrating a JavaScript project to TypeScript. The compiler effectively treats...
Read more >
TSConfig Reference - Docs on every TSConfig option
A TSConfig file in a directory indicates that the directory is the root of a TypeScript or JavaScript project... Compiler Options. Top Level....
Read more >
Documentation - tsc CLI Options - TypeScript
Flag Type Default ‑‑allowJs boolean false ‑‑allowUmdGlobalAccess boolean false ‑‑allowUnreachableCode boolean
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