Duolith docs

Errors E0200 to E0299

E0204 Two files, one native module

Message files would be one module of the native build (modules)

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

The native build writes each page, layout and component to a module named after its file. Two files whose names map to the same module, such as pages/[id].duo and pages/@id.duo, About.duo and about.duo (one file on a disk that ignores case), or foo.duo and foo.setup.duo (whose setup module is foo.setup), would overwrite each other, and the app would silently lose one. The build stops instead.

How to fix it

Rename one of the two files the error names, so they differ by more than case, [id] against @id, or a .setup ending. The error is at the first of them.

In a terminal

duolith explain E0204

Mentioned in