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>
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 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.