I’m getting an error error when I try to run forestadmin locally
Expected behavior
npm start
should spin up forestadmin dashboard
Actual behavior
Getting an error
Failure Logs
[forest] 🌳🌳🌳 An error occured while computing the Forest schema. Your application schema cannot be synchronized with Forest. Your admin panel might not reflect your application models definition. implementation.SchemaAdapter is not a constructor
TypeError: implementation.SchemaAdapter is not a constructor
at /Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/dist/generators/schemas.js:16:14
at tryCatcher (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/reduce.js:166:18)
at Object.gotAccum (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/reduce.js:155:25)
at Object.tryCatcher (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromiseCtx (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:641:10)
at _drainQueueStep (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/async.js:97:12)
at _drainQueue (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (internal/timers.js:458:21)
(node:39182) UnhandledPromiseRejectionWarning: TypeError: implementation.SchemaAdapter is not a constructor
at /Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/dist/generators/schemas.js:16:14
at tryCatcher (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/reduce.js:166:18)
at Object.gotAccum (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/reduce.js:155:25)
at Object.tryCatcher (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromiseCtx (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/promise.js:641:10)
at _drainQueueStep (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/async.js:97:12)
at _drainQueue (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/Users/loubna/Documents/AbstractOps/server-admin/node_modules/forest-express/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (internal/timers.js:458:21)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:39182) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:39182) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Context
Please provide any relevant information about your setup.
"@google-cloud/storage": "^5.1.2",
"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",
"os": "^0.1.1",
"pg": "~8.2.2",
"require-all": "^3.0.0",
"sequelize": "~5.15.1"
- Database Dialect: postgres
- Database Version:12.3.2
- Project Name: server-admin