Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Typescript error when using @makerdao/[email protected] "Cannot find name 'BigNumber'" #269

Open
kushkamisha opened this issue Apr 2, 2021 · 0 comments · May be fixed by #270
Open

Typescript error when using @makerdao/[email protected] "Cannot find name 'BigNumber'" #269

kushkamisha opened this issue Apr 2, 2021 · 0 comments · May be fixed by #270

Comments

@kushkamisha
Copy link

When trying to import McdPlugin from '@makerdao/dai-plugin-mcd'; getting errors

ERROR in ../node_modules/@makerdao/dai-plugin-mcd/typings/multicall.d.ts:98:25 - error TS2304: Cannot find name 'BigNumber'.

98     liquidationPenalty: BigNumber;
                           ~~~~~~~~~
../node_modules/@makerdao/dai-plugin-mcd/typings/multicall.d.ts:108:16 - error TS2304: Cannot find name 'BigNumber'.

108     debtFloor: BigNumber;
                   ~~~~~~~~~
../node_modules/@makerdao/dai-plugin-mcd/typings/multicall.d.ts:135:25 - error TS2304: Cannot find name 'BigNumber'.

135     liquidationPenalty: BigNumber;
                            ~~~~~~~~~
../node_modules/@makerdao/dai-plugin-mcd/typings/multicall.d.ts:140:28 - error TS2304: Cannot find name 'BigNumber'.

140     priceWithSafetyMargin: BigNumber;
                               ~~~~~~~~~
../node_modules/@makerdao/dai-plugin-mcd/typings/multicall.d.ts:145:16 - error TS2304: Cannot find name 'BigNumber'.

145     debtFloor: BigNumber;
                   ~~~~~~~~~
../node_modules/@makerdao/dai-plugin-mcd/typings/multicall.d.ts:157:52 - error TS2304: Cannot find name 'BigNumber'.

157     debtScalingFactor(collateralTypeName: string): BigNumber;
                                                       ~~~~~~~~~
../node_modules/@makerdao/dai-plugin-mcd/typings/multicall.d.ts:162:56 - error TS2304: Cannot find name 'BigNumber'.

162     priceWithSafetyMargin(collateralTypeName: string): BigNumber;
                                                           ~~~~~~~~~
../node_modules/@makerdao/dai-plugin-mcd/typings/multicall.d.ts:172:44 - error TS2304: Cannot find name 'BigNumber'.

172     debtFloor(collateralTypeName: string): BigNumber;
                                               ~~~~~~~~~
../node_modules/@makerdao/dai-plugin-mcd/typings/multicall.d.ts:192:8 - error TS2304: Cannot find name 'BigNumber'.

192     ): BigNumber;
           ~~~~~~~~~
../node_modules/@makerdao/dai-plugin-mcd/typings/multicall.d.ts:201:8 - error TS2304: Cannot find name 'BigNumber'.

201     ): BigNumber;
           ~~~~~~~~~
../node_modules/@makerdao/dai-plugin-mcd/typings/multicall.d.ts:210:8 - error TS2304: Cannot find name 'BigNumber'.

210     ): BigNumber;
           ~~~~~~~~~
../node_modules/@makerdao/dai-plugin-mcd/typings/multicall.d.ts:235:52 - error TS2304: Cannot find name 'BigNumber'.

235     maxAuctionLotSize(collateralTypeName: string): BigNumber;
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant