[Vuejs]-Vite v3.2.5 use app.js instead of app.mjs

0👍

Try adding the mime type for .mjs files in the Plesk control panel (based on their docs):

If this is a Linux server

  1. Log in to Plesk.

  2. Go to Domains > YOUR DOMAIN NAME > Apache & nginx Settings.

  3. Next to MIME types, select the Enter custom value option button.

  4. Add a line that says: text/javascript .mjs.

  5. Save your changes.

If this is a Windows server

  1. Log in to Plesk.

  2. Go to Domains > YOUR DOMAIN NAME > Hosting Settings > IIS Settings.

  3. Go to the MIME Types section.

  4. Add a line that says: text/javascript .mjs.

  5. Save your changes.

Leave a comment