diff --git a/rust/kcl-lib/src/walk/import_graph.rs b/rust/kcl-lib/src/walk/import_graph.rs index 8cedde750..63884a385 100644 --- a/rust/kcl-lib/src/walk/import_graph.rs +++ b/rust/kcl-lib/src/walk/import_graph.rs @@ -185,10 +185,9 @@ pub(crate) async fn import_universe( })); }; let ModuleRepr::Kcl(program, _) = &module_info.repr else { - return Err(KclError::Internal(KclErrorDetails { - message: format!("Module {} is not a KCL module", module_id), - source_ranges: vec![import_stmt.into()], - })); + // if it's not a KCL module we can skip it since it has no + // dependencies. + continue; }; program.clone() };