diff --git a/sixtyfps_compiler/typeloader.rs b/sixtyfps_compiler/typeloader.rs index 339508c8c..b32815ce4 100644 --- a/sixtyfps_compiler/typeloader.rs +++ b/sixtyfps_compiler/typeloader.rs @@ -228,6 +228,7 @@ impl<'a> TypeLoader<'a> { if diagnostics.has_error() { let mut d = Document::default(); d.node = Some(dependency_doc.into()); + d.local_registry = TypeRegister::new(&self.global_type_registry); self.all_documents.docs.insert(path.to_owned(), d); return; }