Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

456
Views
WebStorm use wrong @types definition file?

I'm using webstorm to write react page with react-router-dom@6.

react-router-dom@6 has built-in index.d.ts and @types/react-router-dom does not have a version higher than 6.

Normally, webstorm should use the built-in index.d.ts of react-router-dom. But webstorm automatically downloaded the wrong @types/react-router-dom@5

Just like in the following screenshots.

enter image description here

enter image description here

How can I make it work?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

npx create-react-app <application-name>

cd npm start

Click Create New Project on the Welcome screen or select File | New | Project from the main menu. The Create New Project Dialog opens.

In the left-hand pane, choose React.

In the right-hand pane:

Specify the path to the folder where the project-related files will be stored.

In the Node Interpreter field, specify the Node.js interpreter to use. Select a configured interpreter from the list or choose Add to configure a new one.

From the create-react-app list, select npx create-react-app.

Alternatively, for npm version 5.1 and earlier, install the create-react-app package yourself by running npm install --g create-react-app in the TerminalAlt+F12. When creating an application, select the folder where the create-react-app package is stored.

Optionally:

To use TSX instead of JSX, select the Create TypeScript project checkbox. WebStorm will generate .tsx files for your application and a tsconfig.json configuration file.

When you click Create, WebStorm generates a React-specific project with all the required configuration files and downloads the required dependencies. WebStorm also creates an npm start and JavaScript Debug configurations with default settings for running or debugging your application.

for more info please visit : React-Webstorm

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!