Typescript Compiler fails with OpenGSN v2.2.1

Running yarn tsc causes the following output:

......
node_modules/@opengsn/common/node_modules/@opengsn/contracts/types/truffle-contracts/VersionRegistry.d.ts:239:29 - error TS2694: Namespace 'global.Truffle' has no exported member 'TransactionDetails'.

239         txDetails?: Truffle.TransactionDetails
                                ~~~~~~~~~~~~~~~~~~

node_modules/@opengsn/common/node_modules/@opengsn/contracts/types/truffle-contracts/VersionRegistry.d.ts:245:29 - error TS2694: Namespace 'global.Truffle' has no exported member 'TransactionDetails'.

245         txDetails?: Truffle.TransactionDetails
                                ~~~~~~~~~~~~~~~~~~

node_modules/@opengsn/common/node_modules/@opengsn/contracts/types/truffle-contracts/VersionRegistry.d.ts:251:29 - error TS2694: Namespace 'global.Truffle' has no exported member 'TransactionDetails'.

251         txDetails?: Truffle.TransactionDetails
                                ~~~~~~~~~~~~~~~~~~

I’m able to workaround this with by adding "skipLibCheck": true to my tsconfig for now.

Thanks for letting us know. added to our todo list…

1 Like