VisActor / VisActor/VTable

[Bug] Uncaught TypeError: type is not a function

Open
#2,797 1 comment 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
3.7k
Forks
486
Avg merge
1d 19h
Merged PRs (30d)
16

Description

Version

1.10.3

Link to Minimal Reproduction

https://stackblitz.com/edit/vitejs-vite-efwaps?file=src%2Fvtable-demo.tsx

Steps to Reproduce

初始化即报错

Current Behavior

React环境,使用的是@visactor/react-vtable package 导出的GroupText组件

Uncaught TypeError: type is not a function
    at decodeReactDom (@visactor_react-vtable.js?v=10b81f50:55841:80)
    at computeCustomRenderWidth (@visactor_react-vtable.js?v=10b81f50:59935:41)
    at computeAutoColWidth (@visactor_react-vtable.js?v=10b81f50:59882:25)
    at computeColWidth (@visactor_react-vtable.js?v=10b81f50:59859:550)
    at computeColsWidth (@visactor_react-vtable.js?v=10b81f50:59811:609)
    at createGroupForFirstScreen (@visactor_react-vtable.js?v=10b81f50:60184:635)
    at SceneProxy.createGroupForFirstScreen (@visactor_react-vtable.js?v=10b81f50:60875:5)
    at Scenegraph.createSceneGraph (@visactor_react-vtable.js?v=10b81f50:62546:711)
    at ListTableAll.setRecords (@visactor_react-vtable.js?v=10b81f50:76736:98)
    at ListTableAll.updateOption (@visactor_react-vtable.js?v=10b81f50:76498:131)

但是使用@visactor/vtable中的VGroupVText组件不报错

Expected Behavior

React环境不应该使用@visactor/react-vtable中的GroupText组件吗?参考例子 https://visactor.io/vtable/demo-react/custom-layout/cell-custom-component

Environment
- OS: window 11
- Browser: Edge 130.0.2849.68
- Framework: React@^18.3.1
Any additional comments?

相关issue: https://github.com/VisActor/VTable/issues/2041

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.