Well even if I copy the modules in the repo directory, the main module still has a relative path in the import declaration
You’ll indeed need to remove the location specifier in your main module; after that, it should work (see our documentation for more details).