FoalTS build does not resolve root imports by default. You must install the module-alias package if you want to use them. Here's how to configure the library with Foal:
Specify the directory from which root imports should be resolved during compilation.
Specify the directory from which root imports should be resolved at runtime.
Then register the loader at the top of the file
If you use shell scripts, the loader must also be registered at the top of each one.