I'm hosting a Node.js app on Serv00 (WWW feature) with Passenger and getting this error:
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module...
I set "type": "module"
in package.json, replaced require()
with import
, and tried renaming files to .mjs, but the error persists. The issue is, I can't configure Passenger on Serv00. Is there a way to run ES modules in this setup? Any help would be appreciated!
Thanks!