Registering automapper-ts in Global Context not working - Angular App Reference undefined

Discussão em 'Angular' iniciado por neukoellnjenny, Outubro 19, 2024.

  1. After updating to Angular 18 the node package automapper-ts is no longer working.

    When trying to register Automapper in global context, app is undefined, thus the Reference to the Angular App cannot be resolved. Anyone the same prob?

    automapper.js

    var automapper = (function (app) {
    app.automapper = AutoMapperJs.AutoMapper.getInstance(); <--- ERROR
    return app.automapper;
    })(this);

    Continue reading...

Compartilhe esta Página