You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting a resolution issue related to the "@solana/buffer-layout": "4.0.0" resolution and breaking changes to the lib.
There's an extensive thread related to this issue located at solana-labs/solana-program-library#2534 and I've tried all the options suggested without success.
The issue first surfaces when doing a yarn install where the following warning appears: warning Resolution field "@solana/buffer-layout@4.0.0" is incompatible with requested version "@solana/buffer-layout@^3.0.0"
If I use typescript types I get the following stack trace error:
TypeError: fields must be array of Layout instances
at new Structure (~/arby/node_modules/@jup-ag/lifinity-sdk/node_modules/@project-serum/anchor/node_modules/@solana/buffer-layout/src/Layout.ts:1107:13)
at Object.struct (~/arby/node_modules/@jup-ag/lifinity-sdk/node_modules/@project-serum/anchor/node_modules/@solana/buffer-layout/src/Layout.ts:2615:5)
at Object.<anonymous> (~/arby/node_modules/@jup-ag/lifinity-sdk/node_modules/@project-serum/anchor/node_modules/@solana/web3.js/src/system-program.ts:648:26)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Object.require.extensions.<computed> [as .js] (~/arby/node_modules/ts-node/src/index.ts:1445:43)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
[nodemon] app crashed - waiting for file changes before starting...
If I switch to JS without the need for types I get the following stack trace error:
~/arby/node_modules/@jup-ag/lifinity-sdk/node_modules/@project-serum/anchor/node_modules/@solana/buffer-layout/lib/Layout.js:999
throw new TypeError('fields must be array of Layout instances');
^
TypeError: fields must be array of Layout instances
at new Structure (~/arby/node_modules/@jup-ag/lifinity-sdk/node_modules/@project-serum/anchor/node_modules/@solana/buffer-layout/lib/Layout.js:999:19)
at Object.exports.struct (~/arby/node_modules/@jup-ag/lifinity-sdk/node_modules/@project-serum/anchor/node_modules/@solana/buffer-layout/lib/Layout.js:2373:57)
at Object.<anonymous> (~/arby/node_modules/@jup-ag/lifinity-sdk/node_modules/@project-serum/anchor/node_modules/@solana/web3.js/lib/index.cjs.js:3525:37)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (~/arby/node_modules/@jup-ag/lifinity-sdk/node_modules/@project-serum/anchor/dist/cjs/index.js:32:29)
I'm getting a resolution issue related to the
"@solana/buffer-layout": "4.0.0"
resolution and breaking changes to the lib.There's an extensive thread related to this issue located at solana-labs/solana-program-library#2534 and I've tried all the options suggested without success.
The issue first surfaces when doing a
yarn install
where the following warning appears:warning Resolution field "@solana/buffer-layout@4.0.0" is incompatible with requested version "@solana/buffer-layout@^3.0.0"
If I use typescript types I get the following stack trace error:
If I switch to JS without the need for types I get the following stack trace error:
Here's my package.json deps:
I'm out of options for this one. Any help, feedback or fix suggestions welcome.
The text was updated successfully, but these errors were encountered: