Hello, I just found this tool and wanted to test it.
After following the instructions on https://app.forestadmin.com (creating account, creating project, setup via npm) I receive the error below.
The same error appears when I run it via docker using the latest image.
Expected behavior
Setup should work
Actual behavior
Setup fails with error SequelizeAssociationError
Failure Logs
➜ xxx-test npm start
xxx-test@0.0.1 start /Users/pasukaru/xxx-test
node ./server.js
/Users/pasukaru/xxx-test/node_modules/sequelize/lib/associations/base.js:106
throw new AssociationError(`You have used the alias ${options.as} in two separate associations. ` +
^
SequelizeAssociationError: You have used the alias partner in two separate associations. Aliased associations must have unique aliases.
at new Association (/Users/pasukaru/xxx-test/node_modules/sequelize/lib/associations/base.js:106:13)
at new BelongsTo (/Users/pasukaru/xxx-test/node_modules/sequelize/lib/associations/belongs-to.js:18:5)
at Function.<anonymous> (/Users/pasukaru/xxx-test/node_modules/sequelize/lib/associations/mixin.js:105:25)
at Function.Ad.associate (/Users/pasukaru/xxx-test/models/ad.js:51:8)
at /Users/pasukaru/xxx-test/models/index.js:39:19
at Array.forEach (<anonymous>)
at Object.<anonymous> (/Users/pasukaru/xxx-test/models/index.js:37:17)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/Users/pasukaru/xxx-test/routes/ad.js:3:16)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at /Users/pasukaru/xxx-test/node_modules/require-all/index.js:56:46
at Array.forEach (<anonymous>)
at requireAll (/Users/pasukaru/xxx-test/node_modules/require-all/index.js:34:9)
at Object.<anonymous> (/Users/pasukaru/xxx-test/app.js:47:1)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (/Users/pasukaru/xxx-test/server.js:2:13)
Context
Fresh install.
“dependencies”: {
“chalk”: “~1.1.3”,
“cookie-parser”: “1.4.4”,
“cors”: “2.8.5”,
“debug”: “~4.0.1”,
“dotenv”: “~6.1.0”,
“express”: “~4.16.3”,
“express-jwt”: “5.3.1”,
“forest-express-sequelize”: “^6.0.0”,
“morgan”: “1.9.1”,
“require-all”: “^3.0.0”,
“sequelize”: “~5.15.1”,
“pg”: “~6.1.0”
}
Postgres version: 11.6
npm version: 6.14.4
node version: v10.20.1