0

Have any of you implemented aurelia + breeze + validation? Is there an example available? When I implement only the breeze it validates, but does not show errors (in release 1.0.0 show errors but dont in last realase (2.2.0) the feature was removed) in the form?

Attempts made:

Using Aurelia-Validation (My attempt shown below)


Breeze-Validation (This, only works on version 1.0.0 (or lower) of the aurelia breeze feature has been removed)


Attempt

My main.js:

Import 'bootstrap';
Import BreezeValidator from './breeze-validator';

export function configure(aurelia) {
  aurelia.use
    .standardConfiguration()
    .developmentLogging();

  aurelia.use
    .plugin('aurelia-breeze');
  aurelia.use
    .plugin('aurelia-validation', config => config.customValidator(BreezeValidator));

  aurelia.start().then(() => aurelia.setRoot());
}

Error message: Unhandled rejection Error: key / value can not be null or undefined. Are you trying to inject / register something that does not exist with DI

  • May not fix your issue, but you don't need multiple `aurelia.use`'s. `aurelia.use.standardConfiguration().developmentLogging().plugin('aurelia-breeze').etc...` – Tom Apr 05 '17 at 15:04
  • I know this, I only use this way to separate by subject, thank you – Renan Almeida Garcia Apr 05 '17 at 16:30
  • You say that it works but it doesn't show errors in the form... Have you configured a customRenderer? – Fabio Apr 05 '17 at 16:45
  • I was able to do show errors but only in version 1.0.0 in the following none presented error messages. Now I have two challenges to make Breeze work in version 2.2.0 and integrate it with the aurelia-validation plugin – Renan Almeida Garcia Apr 05 '17 at 17:48

0 Answers0