NodejsStarterKit icon indicating copy to clipboard operation
NodejsStarterKit copied to clipboard

Bug: critical error in `Application.loadModule`

Open georgolden opened this issue 3 years ago • 0 comments

Application.loadModule method loads module trees wrong. Logs Application.sandbox.lib:

2021-09-08T10:04:10     {
  example: [Function: bound method] {
    cache: { set: [Function: bound set], get: [Function: bound get] },
    doSomething: [Function: bound ],
    start: [Function: bound method] AsyncFunction,
    stop: [Function: bound ] AsyncFunction,
    storage: [Function: bound method],
    submodule1: [Function: bound ] { method2: [Function: bound ] },
    submodule2: [Function: bound ] {
      method2: [Function: bound ],
      nested1: [Function: bound ]
    },
    submodule3: [Function: bound ]
  },
  pg: [Function: bound Database] {
    constants: {},
    updates: [Function: bound ],
    where: [Function: bound ]
  },
  resmon: [Function: bound ] { start: [Function: bound ] AsyncFunction },
  utils: [Function: bound ]
}

This happens because submodule case partially ignored in current implementation

georgolden avatar Sep 08 '21 10:09 georgolden