Server error while running preview command (Cannot find module .output\server\index.mjs)

I ran "npm run generate" to generate the static site but it does not create the ".output\server\index.mjs" file. So I cannot preview the generated site. Is there something that I am missing while generating the site?
Was this page helpful?