[Bug] Uncaught TypeError: type is not a function
Open
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 导出的Group和Text组件
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中的VGroup和VText组件不报错
Expected Behavior
React环境不应该使用@visactor/react-vtable中的Group和Text组件吗?参考例子 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?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.