I was using the absolute path convention: app/home#HomeModule and it wasn’t working.
I then tried the relative path convention: ./home#HomeModule and it worked.
… in the CLI, the paths to lazy routes should be relative from the file you’re in
Source
I followed this Tutorial and it used the absolute path convention and it worked.
Would love to know why the inconsistency…
UPDATE:
As Friedrich mentioned, to make it work using an Absolute Path, update src/tsconfig.app.json as follows:
{
...,
"compilerOptions": {
...,
baseUrl: "./"
}
}