-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Type 'unknown' does not satisfy the constraint 'readonly AbiParameter[] | undefined #6185
Comments
For time being you may use |
Skipping the lib check till the following issues identified here are resolved: - web3/web3.js#6162 - web3/web3.js#6185
I updated the issue title as this is not specific to Angular. |
This error is occurring if user proj is using typescript 5.x and doesn't occur if user project is on typescript 4.x ( same version like web3.js is using ). |
There are breaking changes in typescript v5 as compared to v4, I created a test PR #6192 |
we can apply a fix in current web3 with ts v4, for running in ts v5, instead of shifting web3-4x to ts 5x yet, I'll check it later. |
Logs
Error: node_modules/web3-eth-ens/lib/commonjs/ens.d.ts:89:110 - error TS2344: Type 'unknown' does not satisfy the constraint 'readonly AbiParameter[] | undefined'.
89 getAddress(ENSName: string, coinType?: number): Promise<import("web3-types").MatchPrimitiveType<"bytes", unknown>>;
~~~~~~~
Error: node_modules/web3-eth-ens/lib/commonjs/ens.d.ts:106:114 - error TS2344: Type 'unknown' does not satisfy the constraint 'readonly AbiParameter[] | undefined'.
106 getPubkey(ENSName: string): Promise<unknown[] & Record<1, import("web3-types").MatchPrimitiveType<"bytes32", unknown>> & Record<0, import("web3-types").MatchPrimitiveType<"bytes32", unknown>> & [] & Record<"x", import("web3-types").MatchPrimitiveType<"bytes32", unknown>> & Record<"y", import("web3-types").MatchPrimitiveType<"bytes32", unknown>>>;
~~~~~~~
Error: node_modules/web3-eth-ens/lib/commonjs/ens.d.ts:106:187 - error TS2344: Type 'unknown' does not satisfy the constraint 'readonly AbiParameter[] | undefined'.
106 getPubkey(ENSName: string): Promise<unknown[] & Record<1, import("web3-types").MatchPrimitiveType<"bytes32", unknown>> & Record<0, import("web3-types").MatchPrimitiveType<"bytes32", unknown>> & [] & Record<"x", import("web3-types").MatchPrimitiveType<"bytes32", unknown>> & Record<"y", import("web3-types").MatchPrimitiveType<"bytes32", unknown>>>;
~~~~~~~
Error: node_modules/web3-eth-ens/lib/commonjs/ens.d.ts:106:267 - error TS2344: Type 'unknown' does not satisfy the constraint 'readonly AbiParameter[] | undefined'.
106 getPubkey(ENSName: string): Promise<unknown[] & Record<1, import("web3-types").MatchPrimitiveType<"bytes32", unknown>> & Record<0, import("web3-types").MatchPrimitiveType<"bytes32", unknown>> & [] & Record<"x", import("web3-types").MatchPrimitiveType<"bytes32", unknown>> & Record<"y", import("web3-types").MatchPrimitiveType<"bytes32", unknown>>>;
Error: node_modules/web3-eth-ens/lib/commonjs/ens.d.ts:106:342 - error TS2344: Type 'unknown' does not satisfy the constraint 'readonly AbiParameter[] | undefined'.
106 getPubkey(ENSName: string): Promise<unknown[] & Record<1, import("web3-types").MatchPrimitiveType<"bytes32", unknown>> & Record<0, import("web3-types").MatchPrimitiveType<"bytes32", unknown>> & [] & Record<"x", import("web3-types").MatchPrimitiveType<"bytes32", unknown>> & Record<"y", import("web3-types").MatchPrimitiveType<"bytes32", unknown>>>;
Error: node_modules/web3-eth-ens/lib/commonjs/ens.d.ts:118:95 - error TS2344: Type 'unknown' does not satisfy the constraint 'readonly AbiParameter[] | undefined'.
118 getContenthash(ENSName: string): Promise<import("web3-types").MatchPrimitiveType<"bytes", unknown>>;
~~~~~~~
Error: node_modules/web3-eth-ens/lib/commonjs/ens.d.ts:142:118 - error TS2344: Type 'unknown' does not satisfy the constraint 'readonly AbiParameter[] | undefined'.
142 supportsInterface(ENSName: string, interfaceId: string): Promise<import("web3-types").MatchPrimitiveType<"bool", unknown>>;
~~~~~~~
Environment
Angular 16, nodejs 18
The text was updated successfully, but these errors were encountered: