Describe the bug
Our tests are breaking because of an error thrown in casper-js-sdk.
This will probably block our release schedule, we'll discuss this with the team, meanwhile please suggest a solution.
● Console
console.error
@jsonMember on e.StoredValue: cannot resolve specified property constructor at runtime. If the type is not yet defined, for example due to circular references, add '() => ' before it. E.g. @jsonMember(() => Foo)
> 1 | import { DeployUtil, Keys } from 'casper-js-sdk';
| ^
2 | import { signDeploy } from './sign-deploy';
3 |
4 | const getSignature = (
at Object.logError (node_modules/typedjson/src/helpers.ts:83:22)
at node_modules/typedjson/src/json-member.ts:157:17
at BalanceServiceByJsonRPC (node_modules/casper-js-sdk/dist/webpack:/casper-js-sdk/src/services/BalanceServiceByJsonRPC.ts:8:14)
at node_modules/casper-js-sdk/dist/webpack:/casper-js-sdk/src/services/CasperServiceByJsonRPC.ts:235:3
at Object.2969 (node_modules/casper-js-sdk/dist/webpack:/casper-js-sdk/src/services/CasperServiceByJsonRPC.ts:225:1)
at call (node_modules/casper-js-sdk/dist/webpack:/casper-js-sdk/webpack/bootstrap:19:32)
at Object.4400 (node_modules/casper-js-sdk/dist/webpack:/casper-js-sdk/src/services/index.ts:1:1)
at call (node_modules/casper-js-sdk/dist/webpack:/casper-js-sdk/webpack/bootstrap:19:32)
at Object.7108 (node_modules/casper-js-sdk/dist/webpack:/casper-js-sdk/src/index.ts:1:1)
at call (node_modules/casper-js-sdk/dist/webpack:/casper-js-sdk/webpack/bootstrap:19:32)
at __webpack_require__ (node_modules/casper-js-sdk/dist/webpack:/casper-js-sdk/webpack/startup:4:27)
at node_modules/casper-js-sdk/dist/webpack:/casper-js-sdk/webpack/startup:4:47
at factory (node_modules/casper-js-sdk/dist/webpack:/casper-js-sdk/webpack/universalModuleDefinition:3:20)
at Object.<anonymous> (node_modules/casper-js-sdk/dist/webpack:/casper-js-sdk/webpack/universalModuleDefinition:1:1)
at Object.<anonymous> (src/libs/crypto/sign-deploy.test.ts:1:1)
To Reproduce
Identify if any Prequisites:
Steps to reproduce the behavior:
import { DeployUtil, Keys } from 'casper-js-sdk';
write some simple test that is using above as dependencies
run a test with nodejs
Tests are crashing with error
Expected behavior
No error
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Describe the bug Our tests are breaking because of an error thrown in
casper-js-sdk
. This will probably block our release schedule, we'll discuss this with the team, meanwhile please suggest a solution.To Reproduce
Identify if any Prequisites:
Steps to reproduce the behavior:
import { DeployUtil, Keys } from 'casper-js-sdk';
Expected behavior No error
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
Defect Type