Javascript 我的主组件中嵌套路由的问题

Javascript 我的主组件中嵌套路由的问题,javascript,reactjs,react-router,Javascript,Reactjs,React Router,我正在使用React样板进行实践,从头开始构建我的第一个React应用程序。我的路线遇到了问题 从“React”导入React 从“react Router dom”导入{Router,Route} 从“历史记录/createBrowserHistory”导入createBrowserHistory 从“../ApplicationPage”导入ApplicationPage 从“../COMPANYAPPLICATSPAGE”导入COMPANYAPPLICATSPAGE 从“../Compa

我正在使用React样板进行实践,从头开始构建我的第一个React应用程序。我的路线遇到了问题

从“React”导入React
从“react Router dom”导入{Router,Route}
从“历史记录/createBrowserHistory”导入createBrowserHistory
从“../ApplicationPage”导入ApplicationPage
从“../COMPANYAPPLICATSPAGE”导入COMPANYAPPLICATSPAGE
从“../CompanyJobsPage”导入CompanyJobsPage
从“../companyLocationPage”导入companyLocationPage
从“../CompanyPage”导入CompanyPage
从“../CompanyRecruiterPage”导入CompanyRecruiterPage
从“../CompanySettingsPage”导入CompanySettingsPage
从“../EditResumePage”导入EditResumePage
从“../EditCompanyPage”导入EditCompanyPage
从“../EditJobPage”导入EditJobPage
从“../EditProfilePage”导入EditProfilePage
从“../JobPage”导入JobPage
从“../JobsPage”导入JobsPage
从“../NewCompanyPage”导入NewCompanyPage
从“../NewJobPage”导入NewJobPage
从“../NewProfilePage”导入NewProfilePage
从“../NotFoundPage/Loadable”导入NotFoundPage
从“../Main”导入Main
从“../ProfilePage”导入ProfilePage
从“../ProfileSettingsPage”导入ProfileSettingsPage
从“../ProfilesPage”导入ProfilesPage
从“../EditLocationPage”导入EditLocationPage
导出默认函数App(){
const history=createBrowserHistory()
返回(
)
}
路由组件中缺少“精确”。 使用
转到该特定页面而不是

检查 为了更多的理解


希望这有帮助:)

不幸的是,这似乎不起作用。现在,我还收到了一个新错误:提供给
路由
对象
类型的无效prop
组件
,预期为
函数
。我相信此新错误是由于“”和“”中的路径不可用。另外,如果您的入口点是主要组件,请将其指向主页,