main.js TypeError: Cannot read properties of undefined (reading 'params') [closed]

Discussão em 'Angular' iniciado por tal, Setembro 12, 2024.

  1. tal

    tal Guest

    I have upgraded an an angular app from angular 7 to angular 18. my app compiles now but do not load after running it with ng serve. I have an error: TypeError: Cannot read properties of undefined (reading 'params') coming from main.js:1:209796.

    57551: (Me, T, o) => {
    "use strict";
    o.d(T, {
    z: () => K
    });
    var i = o(84745)
    , a = o(32524)
    , u = o(50849)
    , h = o(7510)
    , l = o(84030)
    , p = o(70362)
    , m = o(62977);
    const w = (0,
    i.UX)(u.W.Branch)
    , y = m.kb.getSelectors(w)
    , M = (0,i.Mz)(h.Ms.getState, q => q && q.state.params[a.$.BranchParam])
    , O = (0,
    l.LC)(w)
    , L = (0,
    i.Mz)(M, y.selectEntities, (q, ve) => q && ve[q] && q)
    , K = {
    ...y,
    ...O,
    getActiveParam: M,
    getActiveId: L,
    getActive: (0,
    i.Mz)(y.selectEntities, L, (q, ve) => L && q[ve]),
    getById: q => (0,
    i.Mz)(y.selectEntities, (0,
    p.A)(q)),
    getByCompanyId: q => (0,
    i.Mz)(y.selectAll, ve => ve.filter(te => te.company_id === q))
    }
    }


    I truly have no idea how to approach this error. Any help or even a direction as for how to debug it will be appreciated.

    Continue reading...

Compartilhe esta Página