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.

[Bug] Typescript template broken

See original GitHub issue

I ran react-static create, selected the typescript template, and then ran start command. This was the result:

image

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!

  1. react-static start

Expected Behavior

It should not fail.

Reproducible Demo

Base typescript template. No modifications.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
DominikGuzeicommented, Dec 18, 2019

The Typescript template worked without any issues for me on osx Catalina.

1reaction
gmosxcommented, Sep 1, 2019

The TypeScript template still doesn’t work 😦

Fortunately, a simple yarn upgrade afterwards fixes the issues.

Read more comments on GitHub >

github_iconTop 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 >

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