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

doc: guide/console/extension #678

Closed
arily opened this issue May 12, 2022 · 1 comment
Closed

doc: guide/console/extension #678

arily opened this issue May 12, 2022 · 1 comment
Labels
bug BUG confirmed docs 文档相关

Comments

@arily
Copy link
Contributor

arily commented May 12, 2022

https://koishi.js.org/guide/console/extension.html#%E5%88%9B%E5%BB%BA%E6%89%A9%E5%B1%95
位置: src/index.ts

ctx.console.addEntry({
      dev: resolve(__dirname, 'client/index.ts'),
                             //^ not found

我按照实际dataview的代码 resolve(__dirname, '../client/index.ts'),才成功添加console页面

@shigma
Copy link
Member

shigma commented May 12, 2022

这两行缺了 ../,感谢反馈

@shigma shigma added bug BUG docs 文档相关 confirmed labels May 12, 2022
@shigma shigma closed this as completed in e694237 May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug BUG confirmed docs 文档相关
Projects
None yet
Development

No branches or pull requests

2 participants