我正在尝试将TypeScript添加到我现有的create-react-app项目中,如here所述。
当我将文件重命名为tsx
并重新启动服务器时,我在App.js
文件中得到以下错误,其中导入tsx
文件,如import Team from './components/pages/Team'
。
Module not found: Can't resolve
我还注意到当我添加typescript时没有自动生成tsconfig.json
文件(如上面链接中所述)
我在这做错了什么?