-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lock web3.js to version 1.x for compatibility #595
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a few of the replacements are removing a package from a few install commands. Can you adjust those ones?
I also left a comment about wallet adapter packages for you
@@ -213,7 +213,7 @@ Next, we'll need to add our dependencies. Run the following to install the | |||
required packages: | |||
|
|||
```bash | |||
npm i @solana-developers/helpers @solana/spl-token @solana/web3.js esrun dotenv typescript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one looks like it has a mistake
@@ -223,7 +223,7 @@ Next, we'll need to add our dependencies. Run the following to install the | |||
required packages: | |||
|
|||
```bash | |||
npm i @solana-developers/helpers @solana/spl-token @solana/web3.js esrun dotenv typescript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one looks like it has a mistake
@@ -139,7 +139,7 @@ Next, we'll need to add our dependencies. Run the following to install the | |||
required packages: | |||
|
|||
```bash | |||
npm i @solana-developers/helpers @solana/spl-token @solana/web3.js esrun dotenv typescript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one looks like it has a mistake
@@ -213,7 +213,7 @@ Next, we'll need to add our dependencies. Run the following to install the | |||
required packages: | |||
|
|||
```bash | |||
npm i @solana-developers/helpers @solana/spl-token @solana/web3.js esrun dotenv typescript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one looks like it has a mistake
@@ -127,7 +127,7 @@ Next, we'll need to add our dependencies. Run the following to install the | |||
required packages: | |||
|
|||
```bash | |||
npm i @solana-developers/helpers @solana/spl-token @solana/web3.js esrun dotenv typescript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one looks like it has a mistake
@@ -250,7 +250,7 @@ Next, we'll need to add our dependencies. Run the following to install the | |||
required packages: | |||
|
|||
```bash | |||
npm i @solana-developers/helpers @solana/spl-token @solana/web3.js esrun |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one looks like it has a mistake
@@ -177,7 +177,7 @@ Next, we'll need to add our dependencies. Run the following to install the | |||
required packages: | |||
|
|||
```bash | |||
npm i @solana-developers/helpers @solana/spl-token @solana/web3.js esrun dotenv typescript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one looks like it has a mistake
@@ -459,7 +459,7 @@ Next, we'll need to add our dependencies. Run the following to install the | |||
required packages: | |||
|
|||
```bash | |||
npm i @solana-developers/helpers @solana/spl-token @solana/web3.js esrun dotenv typescript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one looks like it has a mistake
@@ -345,7 +345,7 @@ Solana. | |||
To begin, make a new folder and install the relevant dependencies: | |||
|
|||
```bash | |||
npm i @solana/web3.js npm i @solana/web3.js npm i @solana-developers/helpers npm i @metaplex-foundation/mpl-token-metadata npm i @metaplex-foundation/umi-bundle-defaults npm i @metaplex-foundation/umi-uploader-irys npm i --save-dev esrun | |||
npm i @solana/web3.js@1 npm i @solana/web3.js@1 npm i @solana-developers/helpers npm i @metaplex-foundation/mpl-token-metadata npm i @metaplex-foundation/umi-bundle-defaults npm i @metaplex-foundation/umi-uploader-irys npm i --save-dev esrun |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line is loaded with duplicate installs. it doesnt look like it was from your pr, buts lets fix it while we are here
npm i @solana/web3.js@1 npm i @solana/web3.js@1 npm i @solana-developers/helpers npm i @metaplex-foundation/mpl-token-metadata npm i @metaplex-foundation/umi-bundle-defaults npm i @metaplex-foundation/umi-uploader-irys npm i --save-dev esrun | |
npm install @solana/web3.js@1 @solana-developers/helpers@1 @metaplex-foundation/mpl-token-metadata @metaplex-foundation/umi-bundle-defaults @metaplex-foundation/umi-uploader-irys esrun |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: I am also intentionally pinning the @solana-developers/helpers
package since it uses v1. we are going to release an update version for v2
@@ -1085,7 +1085,7 @@ Throw this command into your terminal to install all the `wallet-adapter` stuff | |||
we need: | |||
|
|||
```shell | |||
yarn add react @solana/web3.js \ | |||
yarn add react @solana/web3.js@1 \ | |||
@solana/wallet-adapter-base @solana/wallet-adapter-react \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to pin any of the wallet adapter packages? either in these install command or in their respective packages?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope not, but probably.
Oh, awesome. I knew that a bad regex destroyed one of the 100 PRs I created that day, but I didn't know which one. Turns out, it was this one! |
492f687
to
d565c33
Compare
Updated! It's actually |
Ohh you right! v2 on helpers :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this Steven!
Read why, here: solana-labs/solana-web3.js#3498