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

通不过 vue-tsc 检查 #26

Open
jamesfancy opened this issue Jul 19, 2022 · 2 comments
Open

通不过 vue-tsc 检查 #26

jamesfancy opened this issue Jul 19, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@jamesfancy
Copy link

可复现的链接:

import { VXETablePluginElement } from "vxe-table-plugin-element";

问题描述与截图:

只需要在源代码中引入,再跑 vue-tsc 或者 vue-tscc --noEmit 就会报错

image


查看了库文件,

package.json 中 typings 声明为 index.ts
似乎应该是 index.d.ts(相应地改文件名)

期望的结果:

No response

操作系统:

Windows 10

浏览器版本:

Microsoft Edge 103.0.1264.62

vue 版本:

3

vxe-table 版本:

x

@jamesfancy jamesfancy added the bug Something isn't working label Jul 19, 2022
@jamesfancy
Copy link
Author

BTW,这个 BUG 提交搞得太复杂了哇

@yuntian001
Copy link

我也一样

node_modules/vxe-table-plugin-element/index.ts:272:26 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.

272 h(resolveComponent(name), {
~~~~

node_modules/vxe-table-plugin-element/index.ts:309:35 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.

309 return h(resolveComponent(name), {
~~~~

node_modules/vxe-table-plugin-element/index.ts:375:26 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.

375 h(resolveComponent(name), {
~~~~

node_modules/vxe-table-plugin-element/index.ts:428:39 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.

428 return h(resolveComponent(name) as ComponentOptions, {
~~~~

node_modules/vxe-table-plugin-element/index.ts:694:41 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.

694 return h(resolveComponent(name), {
~~~~

node_modules/vxe-table-plugin-element/index.ts:759:41 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.

759 return h(resolveComponent(name), {
~~~~

Found 6 errors in the same file, starting at: node_modules/vxe-table-plugin-element/index.ts:272

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

2 participants