DataV-Vue3 icon indicating copy to clipboard operation
DataV-Vue3 copied to clipboard

WIP: DataV Vue3 + Vite + TypeScript

Results 22 DataV-Vue3 issues
Sort by recently updated
recently updated
newest added

resolve entry for package "@dataview/datav-vue3". The package may have incorrect main/module/exports specified in its package.json. 16:25:56 [vite] Internal server error: Failed to resolve entry for package "@dataview/datav-vue3". The package may...

**What kind of change does this PR introduce?** (check at least one) - [x] Bugfix - [ ] Feature - [ ] Code style update - [x] Refactor - [...

添加完依赖后运行不起来; 解决方法:在"@dataview/datav-vue3"的package.json文件加入"type": "module";

使用的是按需引入,页面显示正常,跳转到其他页面,vue-router 报错 ```ts import { BorderBox1, BorderBox10, BorderBox13, BorderBox3, BorderBox4 } from '@dataview/datav-vue3/es' 1 1 1 1 1 ``` ![TD3B1W6_L{C( FDK7)8(HCM](https://user-images.githubusercontent.com/70306476/218617902-7cfbe969-1199-4a09-9169-9e190952b55d.png)

1.使用了BorderBox组件的页面,卸载时必会出现Cannot read properties of null (reading '$el')错误; 2. 因此,在使用v-if销毁页面或者keepalive移除缓存页面时,都会出现此问题; 3. 定位到原因可能是getRefDom方法未对入参ref进行非空判断,因为在上面的1、2情况下,ref的值会是null; 4. 如果是单独的大屏,没有离开页面的情形,自然不会出现上述情形; 5. 希望作者能够看到,感谢作者的付出!

Module not found: Error: Can't resolve '@dataview/datav-vue3'

去掉这个组件就没事了,加上以后就报下面的错误TypeError: Cannot read properties of null (reading '$el') ![image](https://user-images.githubusercontent.com/37327763/236611615-957f0bb6-5c77-4d99-b5f0-5e97b8f2d5a0.png)

package.json导出字段与实际打包后的文件路径不一致,导致使用时报错,package.json中"main": "./cjs/index.js","module": "./es/index.js",但是实际打包后文件夹只有es/index.mjs和umd/datav.umd.js