Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rightContentRender使用和官方一直为啥一直报错啊 #7870

Closed
Modplay opened this issue Nov 7, 2023 · 1 comment
Closed

rightContentRender使用和官方一直为啥一直报错啊 #7870

Modplay opened this issue Nov 7, 2023 · 1 comment

Comments

@Modplay
Copy link

Modplay commented Nov 7, 2023

🧐 问题描述

rightContentRender使用和官方一直为啥一直报错啊

💻 示例代码

export const layout: RunTimeLayoutConfig = ({initialState}) => {
  return {
    rightContentRender: ()=><HeaderDropMenu/>,
};

报错信息

X [ERROR] Expected ">" but found "/"

src/app.ts:37:43:
  37 │     rightContentRender: ()=><HeaderDropMenu/>,
     │                                            ^
     ╵                                            >

error - [icons] build failed: Error: Build failed with 1 error:
src/app.ts:37:43: ERROR: Expected ">" but found "/"

image

@Modplay Modplay closed this as completed Nov 8, 2023
@Modplay Modplay reopened this Nov 8, 2023
@Modplay Modplay closed this as completed Nov 8, 2023
@tsuyoii
Copy link

tsuyoii commented Dec 29, 2023

🧐 问题描述

rightContentRender使用和官方一直为啥一直报错啊

💻 示例代码

export const layout: RunTimeLayoutConfig = ({initialState}) => {
  return {
    rightContentRender: ()=><HeaderDropMenu/>,
};

报错信息

X [ERROR] Expected ">" but found "/"

src/app.ts:37:43:
  37 │     rightContentRender: ()=><HeaderDropMenu/>,
     │                                            ^
     ╵                                            >

error - [icons] build failed: Error: Build failed with 1 error: src/app.ts:37:43: ERROR: Expected ">" but found "/"

image

把app.ts改成app.tsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants