docs icon indicating copy to clipboard operation
docs copied to clipboard

Add TS Config step to Creating a Pool guide.

Open thom801 opened this issue 4 years ago • 1 comments

Without this TS config setting, ts-node will throw an error:

Cannot find module '@uniswap/v3-core/artifacts/contracts/interfaces/IUniswapV3Pool.sol/IUniswapV3Pool.json'. Consider using '--resolveJsonModule' to import module with '.json' extension.

Adding in this tsconfig setup fixes the issue.

thom801 avatar Jan 01 '22 18:01 thom801

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/uniswap/docs/9U97qVp7SQvY8b68Rk4RrwmTTFQ5
✅ Preview: https://docs-git-fork-thom801-patch-1-uniswap.vercel.app

vercel[bot] avatar Jan 01 '22 18:01 vercel[bot]

Hi! We are in the process of making some runnable examples for the V3 SDK. Our example code has taken this into account here: https://github.com/Uniswap/examples/blob/main/templates/react/tsconfig.json#L18

Closing as this will be addressed soon!

adjkant avatar Dec 15 '22 22:12 adjkant