Docs menu

E026: That module doesn't have a function with this name

What compiler error E026 means, and how to fix it.

Turf found the module you’re calling into just fine – it just couldn’t find a function by that name inside it. This is almost always a typo, and Turf is usually able to guess what you meant and suggest it.

Example
io::pritn("hello");

io is a real module, but it has no function called pritn – it’s missing a letter. Turf will tell you it thinks you meant printline, and once you fix the spelling it compiles right away:

Example
io::printline("hello");

If Turf’s suggestion doesn’t look right, or it doesn’t have one, double-check two things: that you spelled the function name exactly as it’s declared (function names are case-sensitive), and that the function actually lives in the module you’re calling it on – it’s easy to remember a function existing “somewhere in the standard library” without remembering which specific module it’s in.

This is different from the module itself not existing (that’s a separate error) – here, Turf already found and understood io just fine. It’s only the function name after the :: that it couldn’t match.

Run turf --explain E026 in a terminal to read this again.

Last updated: Oct 15, 2026Edit this page on GitHub

Esc

Type to search.