antvis / L7

🌎 Large-scale WebGL-powered Geospatial Data Visualization analysis engine.

Home Page:https://l7.antv.antgroup.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Cannot apply @injectable decorator multiple times.

dengfuping opened this issue · comments

问题描述

Error: Cannot apply @injectable decorator multiple times.
 ❯ ../../node_modules/.pnpm/inversify@5.1.1/node_modules/inversify/src/annotation/injectable.ts:8:13
 ❯ DecorateConstructor ../../node_modules/.pnpm/reflect-metadata@0.2.1/node_modules/reflect-metadata/Reflect.js:549:33
    547|             for (var i = decorators.length - 1; i >= 0; --i) {
    548|                 var decorator = decorators[i];
    549|                 var decorated = decorator(target);
       |                                 ^
    550|                 if (!IsUndefined(decorated) && !IsNull(decorated)) {
    551|                     if (!IsConstructor(decorated))
 ❯ Reflect.decorate ../../node_modules/.pnpm/reflect-metadata@0.2.1/node_modules/reflect-metadata/Reflect.js:143:24
 ❯ _decorate ../../node_modules/.pnpm/inversify@5.1.1/node_modules/inversify/src/annotation/decorator_utils.ts:67:13
 ❯ Proxy.decorate ../../node_modules/.pnpm/inversify@5.1.1/node_modules/inversify/src/annotation/decorator_utils.ts:89:9
 ❯ ../../node_modules/.pnpm/@antv+l7-core@2.20.20/node_modules/@antv/l7-core/es/inversify.config.js:91:23
Error: Error: Cannot apply @injectable decorator multiple times.
 ❯ ../../node_modules/.pnpm/inversify@5.1.1/node_modules/inversify/src/annotation/injectable.ts:8:13
 ❯ DecorateConstructor ../../node_modules/.pnpm/reflect-metadata@0.2.1/node_modules/reflect-metadata/Reflect.js:549:33
 ❯ Reflect.decorate ../../node_modules/.pnpm/reflect-metadata@0.2.1/node_modules/reflect-metadata/Reflect.js:143:24
 ❯ _decorate ../../node_modules/.pnpm/inversify@5.1.1/node_modules/inversify/src/annotation/decorator_utils.ts:67:13
 ❯ Proxy.decorate ../../node_modules/.pnpm/inversify@5.1.1/node_modules/inversify/src/annotation/decorator_utils.ts:89:9
 ❯ ../../node_modules/.pnpm/@antv+l7-core@2.20.20/node_modules/@antv/l7-core/es/inversify.config.js:91:23

image

重现链接

https://github.com/oceanbase/oceanbase-design/actions/runs/8153604647/job/22285332031?pr=483

重现步骤

image

预期行为

No response

平台

  • 操作系统: [macOS, Windows, Linux, React Native ...]
  • 网页浏览器: [Google Chrome, Safari, Firefox]

屏幕截图或视频(可选)

补充说明(可选)

No response

重新安装一下依赖,版本不一致导致的

重新安装一下依赖,版本不一致导致的

  • 几个小时前重装的依赖,用的也是最新的 @antv/l7 版本,直接依赖是 @ant-design/charts。

image

今天发了版本,发版过程中出了点小问题,现在还有问题吗

今天发了版本,发版过程中出了点小问题,现在还有问题吗

重新测试还是有问题,重现链接 https://github.com/oceanbase/oceanbase-design/actions/runs/8154723124/job/22333888242?pr=483

版本为最新的 2.20.20

image