Repository navigation
Expand file tree
/
Copy patherrors.log
More file actions
27 lines (27 loc) · 8.4 KB
/
Copy patherrors.log
File metadata and controls
27 lines (27 loc) · 8.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
src/app/creator/[address]/page.tsx(61,16): error TS2322: Type 'string' is not assignable to type '`0x${string}`'.
src/app/creator/[address]/page.tsx(69,16): error TS2322: Type '`0x${string}` | undefined' is not assignable to type '`0x${string}`'.
Type 'undefined' is not assignable to type '`0x${string}`'.
src/app/creator/[address]/page.tsx(69,29): error TS2322: Type 'string' is not assignable to type '`0x${string}`'.
src/app/dashboard/creator/page.tsx(132,16): error TS2322: Type 'string | undefined' is not assignable to type '`0x${string}`'.
Type 'undefined' is not assignable to type '`0x${string}`'.
src/app/dashboard/creator/page.tsx(158,21): error TS2322: Type '"destructive"' is not assignable to type '"primary" | "secondary" | "danger" | "outline" | "ghost" | undefined'.
src/app/dashboard/owner/page.tsx(42,53): error TS2345: Argument of type 'bigint | `0x${string}` | readonly `0x${string}`[]' is not assignable to parameter of type 'bigint'.
Type '`0x${string}`' is not assignable to type 'bigint'.
src/app/dashboard/owner/page.tsx(162,29): error TS2322: Type '"default"' is not assignable to type '"primary" | "secondary" | "danger" | "outline" | "ghost" | undefined'.
src/app/dashboard/owner/page.tsx(170,29): error TS2322: Type '"destructive"' is not assignable to type '"primary" | "secondary" | "danger" | "outline" | "ghost" | undefined'.
src/hooks/useContractData.ts(2,10): error TS2305: Module '"@/config/contract"' has no exported member 'CONTRACT_ABI'.
src/hooks/useContractData.ts(9,9): error TS2322: Type 'string' is not assignable to type '"owner" | "activePlan" | "creatorPlans" | "creatorProfile" | "creators" | "feeAPY" | "feeCollected" | "getAllCreators" | "hasSubscribedBefore" | "isCreator" | "isValidSubscription" | "isValidUserName" | "subscriptionBoughtDuration" | "subscriptionNFT" | undefined'.
src/hooks/useContractData.ts(10,9): error TS2322: Type 'any[]' is not assignable to type 'readonly [] | readonly [`0x${string}`, `0x${string}`] | readonly [`0x${string}`, bigint] | readonly [`0x${string}`] | readonly [bigint] | readonly [user: `0x${string}`, _creator: `0x${string}`] | readonly [string] | undefined'.
Type 'any[]' is not assignable to type 'readonly [] | readonly [`0x${string}`, `0x${string}`] | readonly [`0x${string}`, bigint] | readonly [`0x${string}`] | readonly [bigint] | readonly [user: `0x${string}`, _creator: `0x${string}`] | readonly [string]'.
Type 'any[]' is not assignable to type 'readonly [string]'.
Target requires 1 element(s) but source may have fewer.
src/hooks/useRoles.ts(13,16): error TS2322: Type '`0x${string}` | undefined' is not assignable to type '`0x${string}`'.
Type 'undefined' is not assignable to type '`0x${string}`'.
src/hooks/useSmartWrite.ts(31,17): error TS2322: Type 'string' is not assignable to type '"addCreator" | "addPlan" | "buySubscription" | "changeFee" | "collectFee" | "creatorWithdraw" | "deactivatePlan" | "giftSubscription" | "pauseContract" | "removeCreator" | "renounceOwnership" | "resumeContract" | "setCreatorData" | "transferOwnership"'.
src/hooks/useSmartWrite.ts(32,17): error TS2322: Type 'any[]' is not assignable to type 'readonly [] | readonly [bigint] | readonly [_creator: `0x${string}`] | readonly [planId: bigint, _price: bigint, _duration: bigint] | readonly [_creator: `0x${string}`, planId: bigint] | readonly [amount: bigint] | readonly [planId: bigint] | readonly [_user: `0x${string}`, planId: bigint, _creator: `0x${string}`] |...'.
Type 'any[]' is not assignable to type 'readonly [] | readonly [bigint] | readonly [_creator: `0x${string}`] | readonly [planId: bigint, _price: bigint, _duration: bigint] | readonly [_creator: `0x${string}`, planId: bigint] | readonly [amount: bigint] | readonly [planId: bigint] | readonly [_user: `0x${string}`, planId: bigint, _creator: `0x${string}`] |...'.
Type 'any[]' is not assignable to type 'readonly [newOwner: `0x${string}`]'.
Target requires 1 element(s) but source may have fewer.
src/hooks/useSmartWrite.ts(33,17): error TS2322: Type 'bigint | undefined' is not assignable to type 'undefined'.
Type 'bigint' is not assignable to type 'undefined'.
src/utils/formatters.ts(4,24): error TS2737: BigInt literals are not available when targeting lower than ES2020.