Describe the bug
Hello, when i install and use the library i receive errors for no matching export in ESM build files of the library. Can you help me? I am using it in a React app with vite.
To Reproduce
Steps to reproduce the behavior:
Install library using yarn
Build project with vite
See error in console
✘ [ERROR] No matching export in "node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js" for import "getAllTradingPairs"
node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js:13:9:
13 │ import { getAllTradingPairs, findBestTradeRecursively, StandardLiquidityPool, StableLiquidityPool, PoolType, encodeSwapParamsForStandar...
╵ ~~~~~~~~~~~~~~~~~~
✘ [ERROR] No matching export in "node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js" for import "findBestTradeRecursively"
node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js:13:29:
13 │ import { getAllTradingPairs, findBestTradeRecursively, StandardLiquidityPool, StableLiquidityPool, PoolType, encodeSwapParamsForStandar...
╵ ~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] No matching export in "node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js" for import "StandardLiquidityPool"
node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js:13:55:
13 │ import { getAllTradingPairs, findBestTradeRecursively, StandardLiquidityPool, StableLiquidityPool, PoolType, encodeSwapParamsForStandar...
╵ ~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] No matching export in "node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js" for import "StableLiquidityPool"
node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js:13:78:
13 │ ...gPairs, findBestTradeRecursively, StandardLiquidityPool, StableLiquidityPool, PoolType, encodeSwapParamsForStandardPoolsOnly, encode...
╵ ~~~~~~~~~~~~~~~~~~~
✘ [ERROR] No matching export in "node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js" for import "PoolType"
node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js:13:99:
13 │ ...TradeRecursively, StandardLiquidityPool, StableLiquidityPool, PoolType, encodeSwapParamsForStandardPoolsOnly, encodeSwapParamsForSta...
╵ ~~~~~~~~
✘ [ERROR] No matching export in "node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js" for import "encodeSwapParamsForStandardPoolsOnly"
node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js:13:109:
13 │ ...rdLiquidityPool, StableLiquidityPool, PoolType, encodeSwapParamsForStandardPoolsOnly, encodeSwapParamsForStandardAndStablePools, isS...
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] No matching export in "node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js" for import "encodeSwapParamsForStandardAndStablePools"
node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js:13:147:
13 │ ...olType, encodeSwapParamsForStandardPoolsOnly, encodeSwapParamsForStandardAndStablePools, isStableMultiPathElement, isStableMetaPool,...
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] No matching export in "node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js" for import "isStableMultiPathElement"
node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js:13:190:
13 │ ...PoolsOnly, encodeSwapParamsForStandardAndStablePools, isStableMultiPathElement, isStableMetaPool, isStandardPool, StableLiquidityMet...
╵ ~~~~~~~~~~~~~~~~~~~~~~~~
✘ [ERROR] No matching export in "node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js" for import "isStableMetaPool"
node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js:13:216:
13 │ ...pParamsForStandardAndStablePools, isStableMultiPathElement, isStableMetaPool, isStandardPool, StableLiquidityMetaPool, } from "./amm/";
╵ ~~~~~~~~~~~~~~~~
✘ [ERROR] No matching export in "node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js" for import "isStandardPool"
node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js:13:234:
13 │ ...pParamsForStandardAndStablePools, isStableMultiPathElement, isStableMetaPool, isStandardPool, StableLiquidityMetaPool, } from "./amm/";
╵ ~~~~~~~~~~~~~~
✘ [ERROR] No matching export in "node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js" for import "StableLiquidityMetaPool"
node_modules/@interlay/interbtc-api/build/esm/src/parachain/amm.js:13:250:
13 │ ...pParamsForStandardAndStablePools, isStableMultiPathElement, isStableMetaPool, isStandardPool, StableLiquidityMetaPool, } from "./amm/"
Expected behavior
There are no errors.
Desktop (please complete the following information):
Describe the bug Hello, when i install and use the library i receive errors for no matching export in ESM build files of the library. Can you help me? I am using it in a React app with vite.
To Reproduce Steps to reproduce the behavior:
Expected behavior There are no errors.
Desktop (please complete the following information):
Version v14.3.
Node: v16 LTS