You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Error: Type 'unknown' does not satisfy the constraint 'readonly AbiParameter[] | undefined #6185
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'.
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'.
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'.
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'.
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'.
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'.
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'.
changed the title [-]Angular 16 build error [/-][+]Error: Type 'unknown' does not satisfy the constraint 'readonly AbiParameter[] | undefined[/+]on Jun 12, 2023
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 ).
Activity
jdevcs commentedon Jun 10, 2023
For time being you may use
"skipDefaultLibCheck": true,or"skipLibCheck": truein your tsconfig.Update tsconfig.json
[-]Angular 16 build error [/-][+]Error: Type 'unknown' does not satisfy the constraint 'readonly AbiParameter[] | undefined[/+]Muhammad-Altabba commentedon Jun 12, 2023
I updated the issue title as this is not specific to Angular.
And here is a project that faces the same issue: https://github.com/Themvp07/ChainTrust/tree/QR_PluginWeb3 (run
yarn buildto see the errors). And adding"skipLibCheck": truecould solve the issue in the mean time.jdevcs commentedon Jun 12, 2023
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 ).
jdevcs commentedon Jun 12, 2023
There are breaking changes in typescript v5 as compared to v4, I created a test PR #6192
jdevcs commentedon Jun 12, 2023
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.