I’m using Node 16+ on FBSD 13. Had the same problem above.
Seems one is expected to build the app (npm run build). I did a build on development mode and the API error disappeared (and the login page renders). Now rebuilding on production mode.
Cautiously confident this is it. 
UPDATE: It works!