Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERROR] No matching export #722

Open
michaeldev5 opened this issue Jan 30, 2024 · 0 comments
Open

[ERROR] No matching export #722

michaeldev5 opened this issue Jan 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@michaeldev5
Copy link

michaeldev5 commented Jan 30, 2024

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:

  1. Install library using yarn
  2. Build project with vite
  3. 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):

  • OS: macos Sonoma
  • Browser Chrome
  • Version v14.3.

Node: v16 LTS

@michaeldev5 michaeldev5 added the bug Something isn't working label Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant