I tried running npm run build (after npm i) using node v20.18.0 and I get the following errors:
Any advice?
npm run build
> francium-sdk-source@1.4.5 build
> tsc
src/model/auto/deposit.ts:63:32 - error TS2339: Property 'methods' does not exist on type 'Program'.
63 const ix = await program.methods
~~~~~~~
src/model/auto/deposit.ts:86:35 - error TS2339: Property 'methods' does not exist on type 'Program'.
86 const depositIx = await program.methods
~~~~~~~
src/model/auto/deposit.ts:130:31 - error TS2339: Property 'methods' does not exist on type 'Program'.
130 const ix0 = await program.methods.userBorrow().accounts(
~~~~~~~
src/model/auto/deposit.ts:159:31 - error TS2339: Property 'methods' does not exist on type 'Program'.
159 const ix1 = await program.methods.userAddLiquidity().accounts(
~~~~~~~
src/model/auto/deposit.ts:196:31 - error TS2339: Property 'methods' does not exist on type 'Program'.
196 const ix2 = await program.methods.finishDeposit().accounts(
~~~~~~~
src/model/auto/index.ts:4:24 - error TS2305: Module '"@project-serum/anchor"' has no exported member 'AnchorProvider'.
4 import { Idl, Program, AnchorProvider, BN } from '@project-serum/anchor';
~~~~~~~~~~~~~~
src/model/auto/withdraw.ts:54:29 - error TS2339: Property 'methods' does not exist on type 'Program'.
54 const ix0 = await program.methods
~~~~~~~
src/model/auto/withdraw.ts:80:29 - error TS2339: Property 'methods' does not exist on type 'Program'.
80 const ix1 = await program.methods
~~~~~~~
src/model/auto/withdraw.ts:106:29 - error TS2339: Property 'methods' does not exist on type 'Program'.
106 const ix2 = await program.methods
~~~~~~~
src/model/auto/withdraw.ts:144:29 - error TS2339: Property 'methods' does not exist on type 'Program'.
144 const ix3 = await program.methods
~~~~~~~
src/model/auto/withdraw.ts:172:33 - error TS2339: Property 'methods' does not exist on type 'Program'.
172 const closeIx = await program.methods
~~~~~~~
src/model/farm/index.ts:1:10 - error TS2305: Module '"@project-serum/anchor"' has no exported member 'AnchorProvider'.
1 import { AnchorProvider, Program, Idl, web3, BN } from '@project-serum/anchor';
~~~~~~~~~~~~~~
src/utils/sign.ts:3:41 - error TS2307: Cannot find module '@snowflake-so/wallet-adapter-snowflake' or its corresponding type declarations.
3 import { SnowflakeSafeWalletName } from '@snowflake-so/wallet-adapter-snowflake';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/utils/sign.ts:4:34 - error TS2307: Cannot find module '@solana/wallet-adapter-strike' or its corresponding type declarations.
4 import { StrikeWalletName } from '@solana/wallet-adapter-strike';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Found 14 errors.
I tried running
npm run build
(afternpm i
) using nodev20.18.0
and I get the following errors:Any advice?