Closed Verdicts-ye closed 1 year ago
Describe the bug
ERROR [vite]: Rollup failed to resolve import "@vant/use" from "node_modules/vant/es/action-bar-button/ActionBarButton.mjs". This is most likely unintended because it can break your application at runtime. If you do want to externalize this module explicitly add it to
build.rollupOptions.external
uni-preset-vue-vite-ts.zipReproduction
Please see the upload attachment
System Info
System: OS: Windows 10 10.0.19044 CPU: (8) x64 Intel(R) Core(TM) i7-7810HQ CPU @ 1.60GHz Memory: 19.28 GB / 31.95 GB Binaries: Node: 16.13.1 - C:\Program Files\nodejs\node.EXE npm: 8.1.2 - C:\Program Files\nodejs\npm.CMD Browsers: Edge: Spartan (44.19041.1266.0) Internet Explorer: 11.0.19041.1566
Used Package Manager
pnpm
Validations
- [x] Follow our Code of Conduct
- [x] Read the Contributing Guide.
- [x] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [x] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- [x] The provided reproduction is a minimal reproducible of the bug.
请问这个解决了吗?
没,vant不支持uniapp
------------------ 原始邮件 ------------------ 发件人: "antfu/unplugin-vue-components" @.>; 发送时间: 2022年12月21日(星期三) 晚上6:34 @.>; @.>;"State @.>; 主题: Re: [antfu/unplugin-vue-components] ERROR [vite]: Rollup failed to resolve import (Issue #549)
Describe the bug
ERROR [vite]: Rollup failed to resolve import @.***/use" from "node_modules/vant/es/action-bar-button/ActionBarButton.mjs". This is most likely unintended because it can break your application at runtime. If you do want to externalize this module explicitly add it to build.rollupOptions.external uni-preset-vue-vite-ts.zip
Reproduction
Please see the upload attachment
System Info System: OS: Windows 10 10.0.19044 CPU: (8) x64 Intel(R) Core(TM) i7-7810HQ CPU @ 1.60GHz Memory: 19.28 GB / 31.95 GB Binaries: Node: 16.13.1 - C:\Program Files\nodejs\node.EXE npm: 8.1.2 - C:\Program Files\nodejs\npm.CMD Browsers: Edge: Spartan (44.19041.1266.0) Internet Explorer: 11.0.19041.1566
Used Package Manager
pnpm
Validations
Follow our Code of Conduct
Read the Contributing Guide.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
The provided reproduction is a minimal reproducible of the bug.
请问这个解决了吗?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you modified the open/close state.Message ID: @.***>
Describe the bug
ERROR [vite]: Rollup failed to resolve import "@vant/use" from "node_modules/vant/es/action-bar-button/ActionBarButton.mjs". This is most likely unintended because it can break your application at runtime. If you do want to externalize this module explicitly add it to
build.rollupOptions.external
uni-preset-vue-vite-ts.zipReproduction
Please see the upload attachment
System Info
Used Package Manager
pnpm
Validations