codecept-typescript-example icon indicating copy to clipboard operation
codecept-typescript-example copied to clipboard

when there are multiple page files and steps file, then typescript defination doesn't work properly

Open dhiraj-kumar-iag opened this issue 2 years ago • 0 comments

when we run command : npx codeceptjs def

1 const { I } = inject(); ~ 'I' was also declared here.

at createTSError (.../node_modules/ts-node/src/index.ts:859:12) at reportTSError (.../node_modules/ts-node/src/index.ts:863:19) at getOutput (.../node_modules/ts-node/src/index.ts:1077:36) at Object.compile (.../node_modules/ts-node/src/index.ts:1433:41) at Module.m._compile (.../node_modules/ts-node/src/index.ts:1617:30) at Module._extensions..js (node:internal/modules/cjs/loader:1209:10) at Object.require.extensions. [as .ts] (.../node_modules/ts-node/src/index.ts:1621:12) at Module.load (node:internal/modules/cjs/loader:1033:32) at Function.Module._load (node:internal/modules/cjs/loader:868:12) at Module.require (node:internal/modules/cjs/loader:1057:19)

dhiraj-kumar-iag avatar Apr 19 '23 03:04 dhiraj-kumar-iag