@kithinji/orca 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2013,7 +2013,7 @@ var kithinjiorca = (() => {
2013
2013
  }, 0);
2014
2014
  }
2015
2015
  function createComponent(ComponentClass, props = {}, parentComponent) {
2016
- let injector = parentComponent.__injector;
2016
+ let injector = getCurrentInjector();
2017
2017
  if (!injector) {
2018
2018
  throw new Error(`Cannot create component ${ComponentClass.name} outside injection context. No injector available from current context or parent component.`);
2019
2019
  }
@@ -2025,6 +2025,7 @@ var kithinjiorca = (() => {
2025
2025
  try {
2026
2026
  instance = injector.resolve(ComponentClass);
2027
2027
  } catch (e) {
2028
+ console.log(e);
2028
2029
  throw new Error(e.message);
2029
2030
  }
2030
2031
  const localProviders = Reflect.getMetadata(COMPONENT_PROVIDERS, ComponentClass) || [];