Skip to content

Swap SDK version incompatibility #56

Description

@amirAlamian

Hi I have updated all of your swap SDKs to the latest version and I get this error

node_modules/@pancakeswap/v2-sdk/node_modules/@pancakeswap/swap-sdk-evm/src/constants.ts:1
import { ChainId, robinhoodChainConfig } from '@pancakeswap/chains'
                  ^

SyntaxError: The requested module '@pancakeswap/swap-sdk-core' does not provide an export named 'SCALED_UI_DENOMINATOR'
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:228:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:337:5)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:651:26)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5)

I think @pancakeswap/chains needs an update

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions