---
title: "Discussion on \"Creating the .NET React template with TypeScript\" | Hashnode"
description: "Discussion on \"Creating the .NET React template with TypeScript\". This tutorial walks you through how to change the Visual Studio .NET React template project to use TypeScript instead of JavaScript."
url: "https://hashnode.com/posts/net-react-typescript-template/61b0de41ccd13f578941e902"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Creating the .NET React template with TypeScript](https://www.nolanbradshaw.ca/net-react-typescript-template?utm_source=hashnode&utm_medium=feed)

This tutorial walks you through how to change the Visual Studio .NET React template project to use TypeScript instead of JavaScript.

Dec 8, 2021 · 4 min read · nolanbradshaw.ca  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#net](https://hashnode.com/tag/net)
-   [#tutorial](https://hashnode.com/tag/tutorial)
-   [#dotnet](https://hashnode.com/tag/dotnet)

## Written by

[Nolan Bradshaw](https://hashnode.com/@nolanbradshaw)

@nolanbradshaw · Toronto, ON

  
[View profile](https://hashnode.com/@nolanbradshaw)

Anything and everything .NET

## Responses 5

Markdown supported · ⌘↵ to post

[Michał Krasuski](https://hashnode.com/@MichaelKey)

[Jan 4, 2023](https://hashnode.com/posts/net-react-typescript-template/61b0de41ccd13f578941e902/comment/63b5a6f8739fb787e25a2505)

Hey,

I had issue with ts-node missing and then following error:

**Invalid options object. Dev Server has been initialized using an options object that does not match the API schema. - options.allowedHosts\[0\] should be a non-empty string**

it was simply adding following code to package.json to make the issue fixed:

```
"options": {
    "allowedHosts": [ "localhost", ".localhost" ],
    "proxy": "your localhost:port address"
  }
```

I could not add link to proxy as a new user

[Javier Grijalva](https://hashnode.com/@jg808909)

[Nov 28, 2022](https://hashnode.com/posts/net-react-typescript-template/61b0de41ccd13f578941e902/comment/63842abfe914b11926f14e31)

just to clarify, it should show the weather app right?  
I get the edit/App.tsx react page

[Mr john Mr](https://hashnode.com/@mrJohn)

[Aug 28, 2022](https://hashnode.com/posts/net-react-typescript-template/61b0de41ccd13f578941e902/comment/630b5a2656df9e8e5024e7c0)

followed the steps but 2 tabs are opened,one is React app and one shows: Launching the SPA proxy... 'This page will automatically redirect to localhost:44483 when the SPA proxy is ready.' and keeps loading... then a cmd window shows: "Something is already running on port 3000.Would you like to run the app on another port instead? » (Y/n)"

[Drew Summy](https://hashnode.com/@Drew22)

[Oct 24, 2022](https://hashnode.com/posts/net-react-typescript-template/61b0de41ccd13f578941e902/comment/630b5a2656df9e8e5024e7c0#reply-6356ddc82ff8c6f14ba7e558)

See the above comment, it worked for me.

[Dmitry Antipov](https://hashnode.com/@dim0)

[Aug 1, 2022](https://hashnode.com/posts/net-react-typescript-template/61b0de41ccd13f578941e902/comment/62e7df93053e6bd57842a60c)

Thank you for interesting article. There is a problem in the code. When spa proxy starts and starts front, then spa proxy does not stop work and spawns a lot of front.

[Dmitry Antipov](https://hashnode.com/@dim0)

[Aug 1, 2022](https://hashnode.com/posts/net-react-typescript-template/61b0de41ccd13f578941e902/comment/62e7df93053e6bd57842a60c#reply-62e7e8fb053e6bd57842a853)

Found a solution. The env.development file is missing the content PORT=your port HTTPS=true

[Drew Summy](https://hashnode.com/@Drew22)

[Oct 24, 2022](https://hashnode.com/posts/net-react-typescript-template/61b0de41ccd13f578941e902/comment/62e7df93053e6bd57842a60c#reply-6356ddba2ff8c6f14ba7e554)

[Dmitry Antipov](https://hashnode.com/@dim0) This worked for me. However, it brings up two web pages. Doesn't really matter, but it's not ideal.

[Dmitry Antipov](https://hashnode.com/@dim0)

[Oct 25, 2022](https://hashnode.com/posts/net-react-typescript-template/61b0de41ccd13f578941e902/comment/62e7df93053e6bd57842a60c#reply-6357f702d6a840fb80edc4f9)

[Drew Summy](https://hashnode.com/@Drew22)

Create .env file in client-app folder and add the following: BROWSER=none

The second web page will never open again

[Hamed](https://hashnode.com/@HamedM)

[Mar 13, 2022](https://hashnode.com/posts/net-react-typescript-template/61b0de41ccd13f578941e902/comment/622de249df08b9b823418df6)

Thank you for your great article. I am using Ubuntu 18.0.4. In my case https in dotnet react works fine but with react typescript the registering certificate doesn't work for me and I face with this error

> There was an error saving the HTTPS developer certificate to the current user personal certificate store

I tried many solutions through the web but I found no answer and just disabled the https and prebuild command. Do you happen to know how it can be solved?
