There is a workaround on the GitHub logreader repo.
I fixed editing “mime.types” file located in /etc/nginx/, replacing the following line:
application/javascript js;
with
application/javascript js mjs;
Then restarting Nginx and php-fpm.
However it should be fixed in Nextcloud v.28.0.1.