js icon indicating copy to clipboard operation
js copied to clipboard

creating contract on CLI via VS Code terminal throws error

Open warengonzaga opened this issue 1 year ago • 2 comments

Hey @iketw or @jnsdls can you take a look into it?

When using this command npx thirdweb create contract

and throws the following error:

;return this.stop(),b(this,K).write(c),this}};qe=new WeakMap,Rt=new WeakMap,it=new WeakMap,$e=new WeakMap,J=new WeakMap,Ee=new WeakMap,K=new WeakMap,ot=new WeakMap,Dt=new WeakMap,Te=new WeakMap,Ce=new WeakMap,Pe=new WeakMap,Ft=new WeakMap,be=new WeakMap,we=new WeakMap;function F(e){return new To(e)}var xl=_(require("url"));function Qn(e,t){let r=["debug","info","warn","error"];return r.indexOf(t)>=r.indexOf(e)}var Ae,Co=class{constructor(t){U(this,Ae,"info");t?.minLevel&&P(this,Ae,t.minLevel)}setSettings(t){t.minLevel&&P(this,Ae,t.minLevel)}debug(...t){Qn(b(this,Ae),"debug")&&console.info(...t)}info(...t){Qn(b(this,Ae),"info")&&console.info(...t)}warn(...t){Qn(b(this,Ae),"warn")&&console.warn(...t)}error(...t){Qn(b(this,Ae),"error")&&console.error(...t)}};Ae=new WeakMap;var y=new Co;function ne(e){return F(`${e}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ^
SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
    at internal/main/run_main_module.js:17:47

Originally, reported from the Discord community support: https://discord.com/channels/834227967404146718/1201575811371778119

warengonzaga avatar Feb 01 '24 06:02 warengonzaga

@warengonzaga what node version are you getting this error on?

joaquim-verges avatar Feb 22 '24 18:02 joaquim-verges

Screenshot 2024-02-23 153908 Same error ...

Aditya-1166 avatar Feb 23 '24 10:02 Aditya-1166

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 20 '24 01:04 stale[bot]