Type not found : HelloWorld

Hello, I got Type not found : HelloWorld error when running haxe --interp -m HelloWorld. I’ve checked 3 times if the file name is Main.hx.

Here’s what the content of the file:

class HelloWorld {
    static public function main() {
        trace("Hello World");

The step to reproduce the error:

  • $ nvim Main.hx
  • $ haxe --interp -m HelloWorld

If the class name is HelloWorld, the file should be named HelloWorld.hx.

1 Like