Error: Cannot apply @injectable decorator multiple times.
dengfuping opened this issue · comments
诸岳 commented
问题描述
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
重现链接
https://github.com/oceanbase/oceanbase-design/actions/runs/8153604647/job/22285332031?pr=483
重现步骤
预期行为
No response
平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
屏幕截图或视频(可选)
补充说明(可选)
No response
github-actions commented
hi @dengfuping, welcome!
@thinkinggis commented
重新安装一下依赖,版本不一致导致的
诸岳 commented
@thinkinggis commented
今天发了版本,发版过程中出了点小问题,现在还有问题吗
诸岳 commented
今天发了版本,发版过程中出了点小问题,现在还有问题吗
重新测试还是有问题,重现链接 https://github.com/oceanbase/oceanbase-design/actions/runs/8154723124/job/22333888242?pr=483
版本为最新的 2.20.20