jup-ag / jupiter-core-example

92 stars 56 forks source link

Resolve the dependencies version #1

Closed mosspig323 closed 2 years ago

mosspig323 commented 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:

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

  "resolutions": {
    "@solana/buffer-layout": "4.0.0"
  }

I simply ran ts-node src/index, and the test results met expectations

Arrowana commented 2 years ago

This is now fixed by our dependencies being updated to latest buffer-layout so no more version conflict