E1101: module has no canonical facade

View source

An import names a module that the compiler cannot find on disk.

An import names a module that the compiler cannot find on disk. A module is either one file, src/shapes.act, or a directory with a canonical facade, a file with the same name as the directory: src/shapes/shapes.act (ADR-0018). The same error is reported for a subdirectory of a module that has no facade of its own, and for a std module that does not exist. The message names the facade file that the compiler expected. The report is on the file that imports the module and has no line and column.

Example

actus
import shapes;

verb main() {
}
actus
import shapes;

verb main() {
}
actus
open circle;
actus
open verb area() -> Int {
    return 1;
}
actus
verb round() -> Int {
    return 1;
}

Fix

Create the facade. It lists the siblings that the module exports with open.

actus
import shapes;

verb main() {
}
actus
open circle;
actus
open verb area() -> Int {
    return 1;
}

Run actus explain E1101 in your terminal to read this entry offline. Browse Modules & rules or all error codes.