diff --git a/jte/src/main/java/gg/jte/compiler/TemplateCompiler.java b/jte/src/main/java/gg/jte/compiler/TemplateCompiler.java index a7a71fba..a8665ba9 100644 --- a/jte/src/main/java/gg/jte/compiler/TemplateCompiler.java +++ b/jte/src/main/java/gg/jte/compiler/TemplateCompiler.java @@ -245,7 +245,8 @@ private Module readModuleInformation(String alias, CodeResolver codeResolver) { Map children = new LinkedHashMap<>(); for ( ModuleImport moduleImport : moduleInfo.imports() ) { - DirectoryCodeResolver moduleDirectoryResolver = new DirectoryCodeResolver(directoryCodeResolver.getRoot().resolve(moduleImport.from())); + Path modulePath = directoryCodeResolver.getRoot().resolve(moduleImport.from()).normalize(); + DirectoryCodeResolver moduleDirectoryResolver = new DirectoryCodeResolver(modulePath); children.put(moduleImport.alias(), readModuleInformation(moduleImport.alias(), moduleDirectoryResolver)); }