Ngsw-worker.js The script has an unsupported MIME type ('text/html')

I'm deploying my Radzen Angular app, everything works fine, but I see in the debug console on Chrome that I get this error on load:

ERROR Error: Uncaught (in promise): SecurityError: Failed to register a ServiceWorker for scope ('https://myappurl/de/') with script ('https://myappurl/de/ngsw-worker.js'): The script has an unsupported MIME type ('text/html').

I have another App with radzen already deployed, the structure is almost identical, and that other App does not have this issue.

The only real difference is, this new app is served with 4 locale languages,
and I use your described i18n process, this means that my deployed App is served under one of these url:

url/de-CH
url/fr-CH
url/it-CH
url/en-Gb

meanwhile the older app where I don't have issue, doesn't have multiple locales.

So can this be the issue? Do I need to change something?

Thank you

Hi,

I have same problem. Have you solved this?