Posts by anhelmphono

    Ich hatte ein vergleichbares Problem. Anscheinend läuft node bei netcup über Plesk/Phusion Passenger in striktem "CommonJS". Zumindest ist für das start-up Script. (Leider lässt sich sveltkit nicht umkompilieren.) Der Kundenservice von netcup hat mich netterweise und sehr schnell auf folgenden Workaround bzw. Lösungsansatz verwiesen:
    https://talk.plesk.com/threads…-execute-esm-code.362146/

    neues Script als als eine Art Entry-Wrapper mit *.cjs erstellen:
    index.cjs

    Code
    (async () => {
      // Link zur SveltKit
      await import("./build/index.js");
    })();

    In der package.json

    Code
    {
    ....
    "type": "module",
    ...
    }