Closed mosspig323 closed 2 years ago
Hi Jupiter team, I'm trying to use the jup.ag/core library in my project, but I always got this error:
jup.ag/core
fields must be array of Layout instances
This error is caused by @jup-ag/core and @saber-hq depending on different versions of @solana/buffer-layout, so you need to add to the package.json
@jup-ag/core
@saber-hq
@solana/buffer-layout
package.json
"resolutions": { "@solana/buffer-layout": "4.0.0" }
I simply ran ts-node src/index, and the test results met expectations
ts-node src/index
This is now fixed by our dependencies being updated to latest buffer-layout so no more version conflict
Hi Jupiter team, I'm trying to use the
jup.ag/core
library in my project, but I always got this error:This error is caused by
@jup-ag/core
and@saber-hq
depending on different versions of@solana/buffer-layout
, so you need to add to thepackage.json
I simply ran
ts-node src/index
, and the test results met expectations