Skip to content

Conversation

@GaoNeng-wWw
Copy link
Collaborator

No description provided.

@kagol
Copy link
Member

kagol commented Apr 18, 2022

构建任务失败了,建议本地执行以下命令,看下构建失败的原因:

pnpm build

@kagol
Copy link
Member

kagol commented Apr 18, 2022

命名上有两个需要优化的点:

  1. hooks改成composables,保持一致性
  2. 实际hooks的命名使用use开头,比如useMenu

@GaoNeng-wWw
Copy link
Collaborator Author

构建任务失败了,建议本地执行以下命令,看下构建失败的原因:

pnpm build

本地运行pnpm build后报ReferenceError: location is not defined错误

@kagol
Copy link
Member

kagol commented Apr 18, 2022

构建任务失败了,建议本地执行以下命令,看下构建失败的原因:

pnpm build

本地运行pnpm build后报ReferenceError: location is not defined错误

你看下这个构建日志的信息哈~
https://github.com/DevCloudFE/vue-devui/runs/6060814179?check_suite_focus=true

我看报错信息是这个:

Could not resolve '../types/menu-item-type' from devui/menu/src/components/menu-item.tsx

@GaoNeng-wWw GaoNeng-wWw reopened this Apr 18, 2022
@kagol kagol added the feature New feature label Apr 19, 2022
@kagol kagol merged commit c4f281e into DevCloudFE:dev Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants