CRA with NPM/TypeScript failing
See original GitHub issueDescription
When I run the “TypeScript using npm” command found here I am getting errors in my terminal and the command exits before completing.
Link to Reproduction
This happens in the terminal
Steps to reproduce
Run this command:
npx create-react-app ch_npm --template @chakra-ui/typescript
Error:
Chakra UI Version
Latest stable
Browser
No response
Operating System
- macOS
- Windows
- Linux
Additional Information
I’m using WSL2 Node v14.19.1 NPM 6.14.16
Issue Analytics
- State:
- Created a year ago
- Reactions:8
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Create-React-App with TypeScript failing to compile after ...
I solved the problem this way : Install css-patch with this command : npm install --dev @semantic-ui-react/css-patch.
Read more >cra-template-typescript - npm
The base TypeScript template for Create React App.. ... Start using cra-template-typescript in your project by running `npm i ...
Read more >Using TypeScript - React Native
If you're starting a new project, there are a few different ways to get started. ... If the above command is failing, you...
Read more >Create React App and TypeScript: A Quick How-To | Built In
If you're still getting an error in your tsconfig.js file, you might be using different versions of TypeScript. Type cmd + shift ...
Read more >Using React with TypeScript - Mattermost
This usually occurs because tsconfig.json (TypeScript's configuration file) is absent from your project. CRA should generate this for you, but ...
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’m also having an issue with this. I don’t get the same error however.
I ran
yarn create react-app my-app --template @chakra-ui/typescript
It installed properly it seems but then when I start it nothing appears in the browser. The following error showed up in the console.I am using MacOS. With Node v16.13.2 and npm v8.1.2
Same error occurs if Chakra is installed manually. Here are my dependencies.
It’s probably worth noting that react is version 18.