Matteo
March 9, 2022, 4:20pm
1
Hi Forest.
We upgraded Sequelize (from 5.x) to v6.17.0 and it looks like everything works fine.
But we found this Github issue in your Github public forest-express-sequelize repo:
opened 02:37PM - 25 Sep 19 UTC
bug
Found an error with sequelize 6.0.0 dependencies
`[forest] 🌳🌳🌳 Unexpected e… rror: model.build is not a function
TypeError: model.build is not a function
at ResourceCreator.perform (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express-sequelize/dist/services/resource-creator.js:20:31)
at /home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/dist/routes/resources.js:58:64
at tryCatcher (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:503:31)
at Promise._settlePromise (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:560:18)
at Promise._settlePromise0 (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:605:10)
at Promise._settlePromises (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:684:18)
at Promise._fulfill (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:629:18)
at Promise._resolveCallback (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:424:57)
at Promise._settlePromiseFromHandler (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:515:17)
at Promise._settlePromise (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:560:18)
at Promise._settlePromise0 (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:605:10)
at Promise._settlePromises (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:684:18)
at Promise._fulfill (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:629:18)
at PromiseArray._resolve (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise_array.js:125:19)
at PromiseArray._promiseFulfilled (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise_array.js:143:14)
at PromiseArray._iterate (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise_array.js:113:31)
at PromiseArray.init [as _init] (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise_array.js:77:10)
at Promise._settlePromise (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:557:21)
at Promise._settlePromise0 (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:605:10)
at Promise._settlePromises (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:684:18)
at Promise._fulfill (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:629:18)
at PromiseArray._resolve (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise_array.js:125:19)
at PromiseArray._promiseFulfilled (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise_array.js:143:14)
at Promise._settlePromise (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:565:26)
at Promise._settlePromise0 (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:605:10)
at Promise._settlePromises (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:684:18)
at Async._drainQueue (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/async.js:126:16)
at Async._drainQueues (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/async.js:136:10)
at Immediate.Async.drainQueues (/home/laruche/Sites/Cadi+/API/cadiplus_sql/node_modules/forest-express/node_modules/bluebird/js/release/async.js:16:14)
at runCallback (timers.js:810:20)
at tryOnImmediate (timers.js:768:5)
at processImmediate [as _immediateCallback] (timers.js:745:5)
`
revert to 5.19 version and this is ok
At the moment we’re succesfully running forest-express-sequelize 7.9.3 and we’re going to upgrade soon to 8.5.x.
Are these configurations supported? Maybe, the above Github issue is outdated, is it?
Thank you,
Matteo
Hey @Matteo ,
Indeed, the issue you are mentioning seems quite old (I’ll close it right after to avoid the misleading information)
According to our internal tests, sequelize@6.0
is supposed to be supported with forest-express-sequelize@8.x
. I’m not sure we did test the forest-express-sequelize@7.0
though, so I would suggest to migrate to the v8 in your case.
If you were to encounter any issue though, don’t hesitate to open a new thread here
3 Likes