Forem Creators and Builders 🌱

gkbaby
gkbaby

Posted on

No route matches [GET] "/packs/js/base-1ecdedd1d603d087caec.chunk.js"

I'm getting routing error for .js files in the path /packs/js. This forem instance runs on docker and parts of the pages doesn't load after user logs in. Has anyone faced the same issue?

base.js:9690 GET https://-/packs/js/Chat-b8bf3f1625012147242d.chunk.js net::ERR_ABORTED 404
base.js:9690 GET https://-/packs/js/vendors~Chat~Onboarding~Search~actionsPanel~admin~analyticsArticle~analyticsDashboard~articleForm~ar~f24f50a4-5c75b66b87679ac971d9.chunk.js net::ERR_ABORTED 404
base.js:9690 GET https://-/packs/js/Chat~Onboarding~articleForm~onboardingRedirectCheck~profileDropdown-eb7b1cb68e47f6c42828.chunk.js net::ERR_ABORTED 404
base.js:9690 GET https://-/packs/js/vendors~Chat~listings~readingList-e4857d151ccc7fe7ea80.chunk.js net::ERR_ABORTED 404
base.js:9690 GET https://-/packs/js/runtime~clipboardCopy-962c7164da98d9ab8815.js net::ERR_ABORTED 404
base.js:9690 GET https://-/packs/js/articleForm-34a3eab168b308b2e123.chunk.js net::ERR_ABORTED 404
base.js:9690 GET https://-/packs/js/clipboardCopy-ebe7b22378108a3a1f8f.chunk.js net::ERR_ABORTED 404
base.js:9690 GET https://-/packs/js/vendors~Chat~Onboarding~Search~actionsPanel~admin~analyticsArticle~analyticsDashboard~articleForm~ar~f24f50a4-5c75b66b87679ac971d9.chunk.js net::ERR_ABORTED 404
base.js:9690 GET https://-/packs/js/homePage-82f7f3380118c0e480dc.chunk.js net::ERR_ABORTED 404
base.js:9690 GET https://-/packs/js/homePage-82f7f3380118c0e480dc.chunk.js net::ERR_ABORTED 404
base.js:9690 GET https://-/packs/js/vendors~Chat~Onboarding~Search~actionsPanel~admin~analyticsArticle~analyticsDashboard~articleForm~ar~f24f50a4-5c75b66b87679ac971d9.chunk.js net::ERR_ABORTED 404
Enter fullscreen mode Exit fullscreen mode

Latest comments (1)

Collapse
 
manuel profile image
Manuel

Yeah i got the same issue using docker and trying to run as a production environment. I checked some issues posted on the forem github and the solution proposed because is production to use for example nginx to retrieve the static files. So i added the following on nginx config file for the site:

location ~ ^/(packs|uploads)/ {
      root /static/;
      gzip_static on;
      expires max;
      add_header Cache-Control public;
      try_files $uri =404;
      error_page 404 /404.html;
    }
Enter fullscreen mode Exit fullscreen mode