'Is there a way to import a class module (psm1) into another class module (psm1)?

I have two class modules. Each in its file. I'd like to use Class1.psm1 inside Class2.psm1.

I am using: using module '.\path' but I get this error Unable to find type [Class1].

Is there a way to do that in powershell 5.1?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source