title: TypeScript module not found in React?
body: <p>I tried adding typescript in my create-react-app project by renaming the .js files into .tsx and by installing it throught the CL like this:</p>
  <pre><code>npm install --save typescript @types/node @types/react
  npm install --save typescript @types/react-dom @types/jest
  </code></pre>
  <p>but when i restart the dev server i get the error &quot;Compiled with problems: X ERROR in ./src/index.tsx 7:0-24
  Module not found: Error: Can't resolve './App' in 'C:\Users\user\Downloads\React\project\src' &quot;</p>
  <p>this is index.tsx:</p>
  <pre><code>import React from &quot;react&quot;;
  import ReactDOM from &quot;react-dom/client&quot;;
  import &quot;./index.css&quot;;
  import App from &quot;./App&quot;;
  import reportWebVitals from &quot;./reportWebVitals&quot;;
  
  const root = ReactDOM.createRoot(document.getElementById(&quot;root&quot;));
  root.render(
    &lt;React.StrictMode&gt;
      &lt;App /&gt;
    &lt;/React.StrictMode&gt;
  );
  
  reportWebVitals();
  </code></pre>
  <p>How can i fix this?</p>