npx create-react-app 프로젝트명 --template typescript로 프로젝트 생성하고
npm start로 실행했는데
계속 Module not found error can't resolve 에러가 뜨면서 실행이 안됩니다.
구글링 해보니 node_modules와 package-lock.js 파일 삭제 후 npm install을 해주면 된대서 해봤는데 그것도 안되네요..
tsconfig.json과 webpack.config.js도 생성해봤는데 그럼 import ReactDOM from "react-dom/client"; 에 모듈 에러가 뜹니다.
index.tsx 파일의 import App from "./App"; 을 App.tsx로 수정해주면 화면에 값이 출력되긴 하는데
그럼 "./App.tsx"; 에 빨간 줄이 뜨면서 An import path cannot end with a '.tsx' extension. Consider importing './App.js' instead. 에러가 생겨요
이것때문에 아무것도 진행하지 못하고 있습니다..ㅜ 혹시 다른 해결 방법 있을까요