Content manager page not loading : ChunkLoadError: Loading chunk 3187 failed

System Information
  • Strapi Version: 4.8.2
  • Operating System: Ubuntu 22
  • Database: Sqlite or mysql, I tried both
  • Node Version: 16.13.0 or 18.15.0, I talso tried both
  • NPM Version: 8.1.0
  • Yarn Version:

Hello, as written in the title, I can’t load the admin/content-manager route (everything else seems to work fine), I get this error in console : ChunkLoadError: Loading chunk 3187 failed.
I’m using an apache proxy, here is my vhost :

<VirtualHost *:80>
  ServerName strapi.can
  ProxyPreserveHost On
  <Proxy *>
    Order allow,deny
    Allow from all
  </Proxy>

  ProxyPass / http://localhost:1338/
  ProxyPassReverse / http://localhost:1338/
</VirtualHost>

Here is my .env

HOST=0.0.0.0
PORT=1338
APP_KEYS=E9hGx8Odu3Dtc4jBhoZH8g==,ABBX+dYbJQY/+hbsrDXmhg==,dckLs9pKYHIVUq6+Rlc7eg==,za4y0ZJtVOfvcBoHUKa6zQ==
API_TOKEN_SALT=wfznBBY5pzJ2pi+2Q2Mj/w==
ADMIN_JWT_SECRET=lUzn3AUGacw+Mrkw4OG8/g==
TRANSFER_TOKEN_SALT=n74o0jG8B5OSnE8RCtbhBA==
IS_PROXIED=true
# Database
DATABASE_CLIENT=sqlite
DATABASE_FILENAME=.tmp/data.db
JWT_SECRET=IyhNuZBz2Ii5zAlLuTIU5A==

I’ve tried to re-install the project with a different version of node, I’ve tried downgrading strapi to 4.5.6.

Hello @TristanB :cake: welcome to the Strapi Community :open_hands:

Based on the error you’re facing, it seems that the issue might be related to how your Apache proxy is set up. Let’s try the following:

  • Update your Apache virtual host configuration to include the necessary directives for handling WebSocket connections and serving static files. Replace your existing <VirtualHost> block with the following:
<VirtualHost *:80>
  ServerName strapi.can
  ProxyPreserveHost On
  <Proxy *>
    Order allow,deny
    Allow from all
  </Proxy>

  ProxyPass /admin http://localhost:1338/admin
  ProxyPassReverse /admin http://localhost:1338/admin

  ProxyPass /uploads http://localhost:1338/uploads
  ProxyPassReverse /uploads http://localhost:1338/uploads

  ProxyPass / http://localhost:1338/
  ProxyPassReverse / http://localhost:1338/
</VirtualHost>

This configuration will ensure that your admin panel and uploaded files are proxied correctly.

Please note that by default, strapi runs on port 1337, not 1338 unless you change this.

Would also suggest to make sure your running the latest version which is 4.8.2 currently.
From here also make sure you check out our :books: Migration Guides

Thanks for your answer.
I tried the vhost you gave to me, but it doesn’t work any better :/.
I also put back the last version 4.8.2, and put back the default port.
However, I tried to access the site by typing the full url, with the specified port → http://strapi.can:1338 instead of http://strapi.can and it works.

For me, do a hard reload or try another browser