Doesn't work “npx create-react-app my-new-app --typescript”

Asked
Active3 hr before
Viewed126 times

5 Answers

typescriptdoesnreact
90%

Try to uninstall your nightly Node version and install the stable version of Node. In the error, it says that babel isn't compatible with your version of Node. ,It also could be that you have an old version of React installed locally. So if the first fix doesn't work try npm uninstall react, Is it possible for everything that exists to have a definition?

Pretag
 Pretag team - issue, fix, solve, resolve
88%

How much work is it to port those to Create React App proper? As it turns out: not that much. Let's get to it. #Step 1: remove react-scripts-ts, add.,While Will Monk's fork create-react-app-typescript has served us well How much work is it to port those to Create React App proper? "scripts": { "watch": "react-scripts-ts start", "build": "react-scripts-ts build", "test": "react-scripts-ts test support of the Create React App team, and in particular Joe Haddad,.,Starting in version 2.1 of Create React App, TypeScript works out of the box. I have several npx create-react-app my-new-app --typescript.

Pretag
 Pretag team - issue, fix, solve, resolve
72%

However, there seemed to be a problem with the following code:,I needed to make a couple of minor tweaks to so that the new version of the TypeScript compiler was happy, so it was a good thing that I took this extra step.,The TypeScript compiler gave me the following error:

To create a new app, I ran the following command in my terminal:

npx create - react - app my - new - app--typescript
load more v
65%

Попробуйте удалить свою ночную версию узла и установить стабильную версию узла. В ошибке говорится, что babel не совместим с вашей версией Node. ,Также может быть, что у вас есть старая версия React, установленная локально. Так что если первое исправление не сработает попробуйте npm uninstall react , Я использую версию ejected на справку по NPX create-react-app из-за моей необходимости добавить несколько зависимостей. Все это работает просто отлично, пока мне не нужно добавить цезий и Resium. Я...

Pretag
 Pretag team - issue, fix, solve, resolve
75%

Posted: (12 days ago) , Posted: (10 days ago) ,   › Create react app typescript template

Pretag
 Pretag team - issue, fix, solve, resolve

Other "typescript-doesn" queries related to "Doesn't work “npx create-react-app my-new-app --typescript”"