climblee / uv-ui

uv-ui 破釜沉舟之兼容vue3+2、app、h5、小程序等多端基于uni-app和uView2.x的生态框架,支持单独导入,开箱即用,利剑出击。
MIT License
759 stars 37 forks source link

查看了包找得到keypress 但是不知道为什么插件一直报错 #90

Open lilili-geng opened 5 months ago

lilili-geng commented 5 months ago

[vite] [plugin:vite:import-analysis] Failed to resolve import "/Users/hongge/Desktop/li/yunyizhineng/autopart-mobile/src/components/keypress/index.vue" from "node_modules/@climblee/uv-ui/components/uv-popup/uv-popup.vue". Does the file exist? at ../node_modules/@climblee/uv-ui/components/uv-popup/uv-popup.vue:1:664 1 | import easycom_0 from '@climblee/uv-ui/components/uv-overlay/uv-overlay.vue';import { resolveDynamicComponent as resolveDynamicComponent } from 'vue';import { resolveEasycom } from '@dcloudio/uni-app';import easycom_1 from '@climblee/uv-ui/components/uv-status-bar/uv-status-bar.vue';import easycom_2 from '@climblee/uv-ui/components/uv-safe-bottom/uv-safe-bottom.vue';import easycom_3 from '@climblee/uv-ui/components/uv-icon/uv-icon.vue';import '@dcloudio/uni-components/style/view.css';import { View as __syscom_4 } from '@dcloudio/uni-h5';import easycom_5 from '@climblee/uv-ui/components/uv-transition/uv-transition.vue';import __easycom_6 from '/Users/hongge/Desktop/li/yunyizhineng/autopart-mobile/src/components/keypress/index.vue'; | ^ 2 |
3 | import keypress from './keypress.js'

Lee1124 commented 5 months ago

用npm重新下载看看

lilili-geng commented 5 months ago

使用npm重新下载看看

试过了没用

Xdy1579883916 commented 3 months ago

或许你解决了,但我希望能够帮助到你(或者后来者),因为我也遇到了这个问题,希望大家少走弯路。

https://github.com/dcloudio/uni-app/issues/4038#issuecomment-2006473946