vue3项目中,有如下警告页面渲染不出来:
[Vue warn]: Failed to resolve component: router-view
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
at <App>
在对应的路由配置文件中,看是否加了export default router,将router暴露出来即可