Skip to content
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

Unable to compile TS #2

Open
tj3x3x3 opened this issue May 6, 2023 · 2 comments
Open

Unable to compile TS #2

tj3x3x3 opened this issue May 6, 2023 · 2 comments

Comments

@tj3x3x3
Copy link

tj3x3x3 commented May 6, 2023

Getting an issue when I try to run the mpl.ts file:

TSError: ⨯ Unable to compile TypeScript:
mpl.ts:50:69 - error TS2345: Argument of type '{ createMetadataAccountArgsV2: { data: { name: string; symbol: string; uri: string; sellerFeeBasisPoints: number; creators: null; collection: null; uses: null; }; isMutable: boolean; }; }' is not assignable to parameter of type 'PublicKey'.
Type '{ createMetadataAccountArgsV2: { data: { name: string; symbol: string; uri: string; sellerFeeBasisPoints: number; creators: null; collection: null; uses: null; }; isMutable: boolean; }; }' is missing the following properties from type 'PublicKey': equals, toBase58, toJSON, toBytes, and 3 more.

50 ix = mpl.createCreateMetadataAccountV2Instruction(accounts, args);
~~~~

at createTSError (/usr/local/lib/node_modules/ts-node/src/index.ts:859:12)
at reportTSError (/usr/local/lib/node_modules/ts-node/src/index.ts:863:19)
at getOutput (/usr/local/lib/node_modules/ts-node/src/index.ts:1077:36)
at Object.compile (/usr/local/lib/node_modules/ts-node/src/index.ts:1433:41)
at Module.m._compile (/usr/local/lib/node_modules/ts-node/src/index.ts:1617:30)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Object.require.extensions.<computed> [as .ts] (/usr/local/lib/node_modules/ts-node/src/index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Function.Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {

diagnosticCodes: [ 2345 ]

@rishabh12227
Copy link

Yes me too
Any solution??

@akshatcoder-hash
Copy link

andy has released a video on this, it'll help: video

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants