Turns out Victoria Lo's code works great. Using node, solely. I tried the solution here, as my own didn't seem to work. When Victoria's solution didn't work either, I became suspicious. Still I can't yet satisfactory answer my own question. But at least for new/old developers who found their way to javascript bundlers point out that local "help-servers" like Live Server and Parcels own don't always work as expected. Warnings and shown errors, does not necessarily mean that the code is "wrong". The mail-area is also not the only one where middlewares does not behave as expected. The matter is apparently known, and discussed on forums like GitHub. So a reminder to myself, before spending weeks with endless troubleshooting and youtube videos: test the solution locally with node's own server first (alternatively on a web host). If the code then does not work, and only then, do I actually know that the error lies in the own code. Unfortunately, it is difficult to avoid bundlers such as gulp, parcel or webpack, but I can't trust them to much. Again, thank you Victoria Lo for sharing your solutions and experiences!