Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

how to solve import BN in raydium-sdk/ #91

Open
SyugamCan opened this issue May 31, 2024 · 0 comments
Open

how to solve import BN in raydium-sdk/ #91

SyugamCan opened this issue May 31, 2024 · 0 comments

Comments

@SyugamCan
Copy link

node_modules/@raydium-io/raydium-sdk/lib/types/base/util.d.ts:3:8 - error TS1259: Module '"/Users/pro/node_modules/@types/bn.js/index"' can only be default-imported using the 'esModuleInterop' flag

import BN from 'bn.js';
~~

node_modules/@types/bn.js/index.d.ts:591:1
591 export = BN;
~~~~~~~~~~~~
This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant