js
js copied to clipboard
creating contract on CLI via VS Code terminal throws error
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 what node version are you getting this error on?
Same error ...
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.