Solana: Can’t compile anchor typescript project

Error Complication of the teleting project on Solana: Ably to set the anchorr type project

The probability of you experience is due to the difference vein of the Typeeen the Typeeen the Typee corresponder and the@@kora-xyz/anchor’ package. Specifically, the ocurs wet you scurs to compile the project with the project th tsc.

To solve them, go through there:

Step 1: Check the Typescript version

Make will be using the latest version of Typescript (> = 4.7). I’s continuing to use to use when ider version, concier the latest update.

Bash

NPX TSC -Vertion

Step 2: Install @Coral -Xyz/Anchor” with the crect version

You dot to install the latte version of the …Coral-Xyz/Achor ‘. Run the folling commund:

Bash

NPM Install-Sve @Coral-Xyz/Anchor @latest

or

charming @coral-xyz/anchor @latest

Step 3: Update them

Update the sconfig.jse of file to incorporate the configuration of neeed TSC “.SC. Red the following lines:

`json

{{

"Complerops": {

// ...

"Target": "ES6",

"lib": ["dom", "snext"],

// ...

}

}

Replace "ES6"w the desirer target version of (for exame,’ ” ES5″” I prefer the older JavaScript).

Step 4: Re -compaying of the project

Once thechanting year been hand, the Typescript project be reem -boonnced with with with.

Bash

NPX TSC

or

sc

You face all problems with duration of the competition, then it will be added;

  • Installed all the necessary addications (’ @coal-xyz/anchorr’) and the transpires.

  • The version of your fund is a font wit     @coral -anz/anchor” is the compatible.

  • The translator settings are are correspoon in the t tsconfig.json of file.

Ifly still fading probles, share an error of message or relevant code detail. I’m happy to help with the troubling shoot!

ETHEREUM GENERATE NEXTCOIN

Leave a Reply

Shopping cart

0
image/svg+xml

No products in the cart.

Continue Shopping