aragon / aragon.js

(Aragon 1) A monorepo of JavaScript libraries for interacting with Aragon
https://aragon.org
GNU Affero General Public License v3.0
82 stars 58 forks source link

TypeError: Aragon is not a constructor #491

Open daviddavo opened 2 years ago

daviddavo commented 2 years ago

I've installed the api with npm i @aragon/api, and then I've copied the sample script from the docs.

But when I try to run it, I recive the following error:

$ node index.js
./index.js:4
const app = new Aragon()
            ^

TypeError: Aragon is not a constructor
    at Object.<anonymous> (/home/davo/Documents/GRASIA/api/index.js:4:13)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)
    at node:internal/main/run_main_module:17:47
welcome[bot] commented 2 years ago

Thanks for opening your first issue in aragonJS! Someone will circle back soon ⚡