From 8fc3bbdad3b12f60731e2076d0b2b5ae402a1435 Mon Sep 17 00:00:00 2001 From: Jaco Date: Sat, 1 Jan 2022 13:05:40 +0100 Subject: [PATCH] Cleanup subsocial import (dedupe package error) (#6766) --- packages/apps-config/src/api/spec/subsocial.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/apps-config/src/api/spec/subsocial.ts b/packages/apps-config/src/api/spec/subsocial.ts index ce8dbb557b..b44890f765 100644 --- a/packages/apps-config/src/api/spec/subsocial.ts +++ b/packages/apps-config/src/api/spec/subsocial.ts @@ -1,6 +1,9 @@ // Copyright 2017-2022 @polkadot/apps-config authors & contributors // SPDX-License-Identifier: Apache-2.0 -import { types } from '@subsocial/types/substrate'; +// We only load the definitions here explicitly - if we try to go via +// import { types } from '@subsocial/types/substrate'; +// we end up with multiple version of types/API +import definitions from '@subsocial/types/substrate/interfaces/subsocial/definitions'; -export default { types }; +export default definitions;