JSX element type 'Router' does not have any construct or call signatures.JSX element type 'Switch' doesnot have any construct or call signatures.JSX element type 'Route' does not have any construct or callRouter>
当尝试运行一些简单版本的Microsoft React教程:时,我在导入的模块上得到了以下错误:
(31,30): JSX element type 'SplitPane' does not have我使用的文件与使用npx create-react-app my-app --scripts-version=react-scripts-ts时输出的文件相同,只是编辑了package.json并创建了"@types/react-dom": "^16.8.4"