Skip to content
This repository was archived by the owner on Feb 21, 2024. It is now read-only.

Commit d69f6b7

Browse files
Adrián González Rusadrigzr
authored andcommitted
fix: error on unknown component name
1 parent 041f1aa commit d69f6b7

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

addon/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,12 @@ function initializeCustomElement(elementName, { name: componentName, attributes:
131131
throw new Error('Cannot find a valid Ember owner to render component.');
132132
}
133133

134+
const klass = owner.resolveRegistration(`component:${componentName}`);
135+
136+
if (!klass) {
137+
return;
138+
}
139+
134140
fixEnvironment(owner);
135141

136142
const self = this;

0 commit comments

Comments
 (0)