#1901·F2

uniapp项目vue2版本使用npm install @antv/f2 --save安装后引入组件报错

Author: dakedouCreated Nov 30, 2023Updated May 8, 2026
  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://github.com/dakedou/online

Steps to reproduce

引入@antv/f2后报错 。错误内容TypeError: (0 , _tslib.__spreadArray) is not a function at DefaultStyleValueRegistry.registerMetadata (pages-demo-demo.js:26413:261) at pages-demo-demo.js:26413:134 at Array.forEach () at new DefaultStyleValueRegistry (pages-demo-demo.js:26413:101) at Object. (pages-demo-demo.js:27243:466) at Object.RfGs (pages-demo-demo.js:27892:30) at webpack_require (index.js:854:30) at fn (index.js:151:20) at Object.ep9H (pages-demo-demo.js:35150:14) at webpack_require (index.js:854:30)

Environment Info
f2 5.0.39
System -
Browser 谷歌最新版

报错问题可能出现在_tslib.__spreadArray 。 本地打印_tslib.只有_tslib.__spreadArrays为什么项目中出现spreadArray 。期待尽快给与回复