Skip to content

Commit 6a03781

Browse files
committed
Add additional note to Legacy SDK section
1 parent bf4b9bc commit 6a03781

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ await client.payments.create({
5555

5656
## Legacy SDK
5757

58+
> If you're using TypeScript, make sure that the `moduleResolution` setting in your `tsconfig.json` is equal to `node16`, `nodenext`,
59+
> or `bundler` to consume the legacy SDK.
60+
5861
While the new SDK has a lot of improvements, we at Square understand that it takes time to upgrade when there are breaking changes.
5962
To make the migration easier, the new SDK also exports the legacy SDK as `square/legacy`. Here's an example of how you can use the
6063
legacy SDK alongside the new SDK inside a single file:

0 commit comments

Comments
 (0)