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

vite+vue3使用unplugin-icons报错 #4991

Open
like0413 opened this issue Jun 17, 2024 · 3 comments
Open

vite+vue3使用unplugin-icons报错 #4991

like0413 opened this issue Jun 17, 2024 · 3 comments

Comments

@like0413
Copy link

like0413 commented Jun 17, 2024

报错:"createElementVNode" is not exported by "node_modules/.pnpm/@dcloudio+uni-mp-vue@3.0.0-alpha-4010520240507001/node_modules/@dcloudio/uni-mp-vue/dist/vue.runtime.esm.js"

import Icons from 'unplugin-icons/vite'

export default defineConfig(async ({ mode, command }) => {
  return {
    plugins: [
      Icons(),
    ],
  }
})

如下使用:

<i-ri:moon-line />

版本:3.0.0-alpha-4010520240507001

@like0413 like0413 changed the title vite+vue3使用unplugin-icons报错:"createElementVNode" is not exported by "node_modules/.pnpm/@dcloudio+uni-mp-vue@3.0.0-alpha-4010520240507001/node_modules/@dcloudio/uni-mp-vue/dist/vue.runtime.esm.js" vite+vue3使用unplugin-icons报错 Jun 17, 2024
@Otto-J
Copy link
Member

Otto-J commented Jun 27, 2024

感谢反馈,具体是运行到哪个平台?提供下单页面源码吧

@like0413
Copy link
Author

有类似的issue:#4497

@like0413
Copy link
Author

用官网方法创建项目:npx degit dcloudio/uni-preset-vue#vite-ts my-vue3-project
vue版本:3.4.27
平台:微信小程序

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

No branches or pull requests

2 participants