[Bug] Typescript template broken
See original GitHub issueI ran react-static create
, selected the typescript template, and then ran start
command. This was the result:
Environment
npx envinfo --system --npmPackages react* --binaries --npmGlobalPackages react* --browsers
System:
OS: macOS 10.14.5
CPU: (4) x64 Intel(R) Core(TM) i5-7267U CPU @ 3.10GHz
Memory: 53.27 MB / 16.00 GB
Shell: 3.0.2 - /usr/local/bin/fish
Binaries:
Node: 12.6.0 - /usr/local/bin/node
Yarn: 1.17.3 - /usr/local/bin/yarn
npm: 6.10.1 - /usr/local/bin/npm
Browsers:
Chrome: 75.0.3770.142
Safari: 12.1.1
npmPackages:
react: ^16.8.2 => 16.8.6
react-dom: ^16.8.2 => 16.8.6
react-static: ^7.0.0 => 7.0.5
react-static-plugin-reach-router: latest => 7.0.10
react-static-plugin-sitemap: latest => 7.0.10
react-static-plugin-source-filesystem: latest => 7.1.0
react-static-plugin-typescript: latest => 7.0.10
npmGlobalPackages:
react-static: 7.1.0
Steps to Reproduce the problem
Base your steps off of any freshly installed react-static template!
react-static start
Expected Behavior
It should not fail.
Reproducible Demo
Base typescript template. No modifications.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:6 (2 by maintainers)
Top Results From Across the Web
TypeScript errors and how to fix them
Common Errors. Below you find a list of common TypeScript errors along with the buggy code and its fixed version. If you're interested...
Read more >anyone else have problems with React's --template typescript ...
I'm still relatively new with TypeScript, and one frustrating part is just setting up. ... Hot-reloading broken, missing @types/react.
Read more >I can't create TypeScript template from create-react-app
I have tried to generate a react app integrated with type script from the following command. npx create-react-app my-app --template typescript.
Read more >Template strings break TypeScript syntax highlighting and ...
Template strings break TypeScript syntax highlighting and error reporting ; Type, Bug ; State, Duplicate ; Assignee, Andrey Starovoyt ; Subsystem, TypeScript.
Read more >Developers - [Bug] Typescript template broken - - Bountysource
[Bug] Typescript template broken. ... I ran react-static create , selected the typescript template, and then ran start command. This was the result:....
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 Free
Top 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
The Typescript template worked without any issues for me on osx Catalina.
The
TypeScript
template still doesn’t work 😦Fortunately, a simple
yarn upgrade
afterwards fixes the issues.