unknown option: --typescript if --typescript is before project name
See original GitHub issueIs 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
- run
create-react-app --typescript foo
, observe that it throwserror: unknown option
–typescript’` - 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
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:5 (1 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I understand this is “expected behavior” but it’s a bad user experience nonetheless.
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.