I’m seeing the same problem – or closely related. Suddenly (there have been changes, updates etc. in between, the editor is not used every day) – the block editor doesn’t work. I installed the classic editor, which works fine, so I’m off the hook as far as emergencies are concerned.
The block editor stops with a blank page – and the browser console says ‘Syntax Error unexpected token ‘<‘ ‘.
This happens when it is opening the ‘dist’ subdirectory in the wp-includes directory. It is getting an apache directory index listing instead of whatever it should be getting:
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 3.2 Final//EN”>
<html>
<head>
<title>Index of /wp-includes/js/dist</title>
</head>
<body>
<h1>Index of /wp-includes/js/dist</h1>
….
Apparently some config issue, but I have not been able to figure out what. Any idea where I should be looking?
I’m using php-fpm in case it matters, and Cloudflare.