You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
file:///D:/github/2345pi-app-nav/server.js:23const
pi = new PiNetwork(apiKey, walletPrivateSeed)
TypeError: PiNetwork is not a constructorat
file:///D:/github/2345pi-app-nav/server.js:23:12at
ModuleTob.run (node:internal/modules/esm/module job:194:25)
Note that I used the .default() function/constructor of the entire PiNetwork object to construct the pi object.
Then the pi object can be used normally to call the other methods:
file:///D:/github/2345pi-app-nav/server.js:23const
pi = new PiNetwork(apiKey, walletPrivateSeed)
TypeError: PiNetwork is not a constructorat
file:///D:/github/2345pi-app-nav/server.js:23:12at
ModuleTob.run (node:internal/modules/esm/module job:194:25)
Is this step an error due to my environment?
The environment of this project
https://github.com/pi-apps/2345pi-app-nav
The text was updated successfully, but these errors were encountered: