@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.
package/dist/browser/index.mjs
CHANGED
|
@@ -3070,7 +3070,7 @@ function autoCleanup(element, callback) {
|
|
|
3070
3070
|
}, 0);
|
|
3071
3071
|
}
|
|
3072
3072
|
function createComponent(ComponentClass, props = {}, parentComponent) {
|
|
3073
|
-
let injector =
|
|
3073
|
+
let injector = getCurrentInjector();
|
|
3074
3074
|
if (!injector) {
|
|
3075
3075
|
throw new Error(`Cannot create component ${ComponentClass.name} outside injection context. No injector available from current context or parent component.`);
|
|
3076
3076
|
}
|
|
@@ -3082,6 +3082,7 @@ function createComponent(ComponentClass, props = {}, parentComponent) {
|
|
|
3082
3082
|
try {
|
|
3083
3083
|
instance = injector.resolve(ComponentClass);
|
|
3084
3084
|
} catch (e) {
|
|
3085
|
+
console.log(e);
|
|
3085
3086
|
throw new Error(e.message);
|
|
3086
3087
|
}
|
|
3087
3088
|
const localProviders = Reflect.getMetadata(COMPONENT_PROVIDERS, ComponentClass) || [];
|