ditojs / dito-example

4 stars 2 forks source link

ControllerError: Controller LinetoAdminController: Missing config field. #3

Closed puckey closed 5 years ago

puckey commented 6 years ago

When running yarn dev it fails with the following error:

yarn run v1.7.0
$ nodemon --watch src/server --watch src/config --exec 'yarn start'
[nodemon] 1.17.5
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: /Users/synch/dev/dito-example/src/server/**/* /Users/synch/dev/dito-example/src/config/**/*
[nodemon] starting `yarn start`
$ babel-node src/server
/Users/synch/dev/dito-example/node_modules/@ditojs/server/lib/controllers/AdminController.js:37
      throw new _errors.ControllerError(this, 'Missing config field.');
      ^

ControllerError: Controller LinetoAdminController: Missing config field.
    at LinetoAdminController.compose (/Users/synch/dev/dito-example/node_modules/@ditojs/server/src/controllers/AdminController.js:17:13)
    at Application.addController (/Users/synch/dev/dito-example/node_modules/@ditojs/server/src/app/Application.js:216:35)
    at Application.addControllers (/Users/synch/dev/dito-example/node_modules/@ditojs/server/src/app/Application.js:198:14)
    at new Application (/Users/synch/dev/dito-example/node_modules/@ditojs/server/src/app/Application.js:62:12)
    at Object.<anonymous> (/Users/synch/dev/dito-example/src/server/app.js:9:13)
    at Module._compile (module.js:649:30)
    at Module._compile (/Users/synch/dev/dito-example/node_modules/pirates/lib/index.js:91:24)
    at Module._extensions..js (module.js:660:10)
    at Object.newLoader [as .js] (/Users/synch/dev/dito-example/node_modules/pirates/lib/index.js:96:7)
    at Module.load (module.js:561:32)
    at tryModuleLoad (module.js:501:12)
    at Function.Module._load (module.js:493:3)
    at Module.require (module.js:593:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/synch/dev/dito-example/src/server/index.js:1:1)
    at Module._compile (module.js:649:30)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[nodemon] app crashed - waiting for file changes before starting...