I just had the same bug. I had the package @astrojs/node installed as a dev-dependency and now just installed it as an dependency instead. Now it works.