I have the same error
my project is vuejs, after npm run build i push the created dist folder to plesk. Originally Application Startup File pointed to App.js I changed it to sw.js
To be sure, create a .htaccess file in the dist folder.
Contents of .htaccess file
<IfModule mod_rewrite.c>...