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

🐛 [Bug]: 文档问题 #1597

Open
cqder opened this issue Apr 27, 2024 · 3 comments
Open

🐛 [Bug]: 文档问题 #1597

cqder opened this issue Apr 27, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@cqder
Copy link

cqder commented Apr 27, 2024

Version

latest

Vue Version

latest

Link to minimal reproduction

https://opentiny.design/tiny-vue/zh-CN/os-theme/docs/import-components

Step to reproduce

引入组件 -》自动导入(推荐)-》Vite 中:
plugins: [autoImportPlugin()]
在使用electron-vite创建的项目中于‘electron.vite.config.mjs’文件中按文档步骤执行后,运行项目会报错。
查询autoImportPlugin后,
依据“@opentiny/unplugin-tiny-vue/dist/index.d.ts”如下注释中:
/** TinyVue 自动导入组件的插件,支持Vite,Webpack,Rollup 等常见的构建工具。

  • 目前不支持Tiny Icon的自动导入
  • @example
  • import autoImportPlugin from '@opentiny/unplugin-tiny-vue'
  • plugins: [autoImportPlugin('vite')]
    */

将plugins: [autoImportPlugin()]修改为‘plugins: [autoImportPlugin('vite')]’后,能成功运行项目。
请更新文档内容

What is expected

No response

What is actually happening

No response

What is your project name

demo

Any additional comments (optional)

No response

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: 🐛 [Bug]: Documentation problem

@kagol kagol added the bug Something isn't working label May 6, 2024
@kagol
Copy link
Member

kagol commented May 6, 2024

@cqder 收到,感谢你的反馈~

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


@cqder Received, thank you for your feedback~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants