You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
可复现的链接:
import { VXETablePluginElement } from "vxe-table-plugin-element";
问题描述与截图:
只需要在源代码中引入,再跑
vue-tsc
或者vue-tscc --noEmit
就会报错查看了库文件,
package.json 中 typings 声明为 index.ts
似乎应该是 index.d.ts(相应地改文件名)
期望的结果:
No response
操作系统:
Windows 10
浏览器版本:
Microsoft Edge 103.0.1264.62
vue 版本:
3
vxe-table 版本:
x
The text was updated successfully, but these errors were encountered: