markshust / docker-magento

Mark Shust's Docker Configuration for Magento
https://m.academy/courses/set-up-magento-2-development-environment-docker/
MIT License
2.58k stars 1.01k forks source link

Fail to load adminhtml assets #768

Open mmvcode opened 2 years ago

mmvcode commented 2 years ago

Description When visiting Catalog -> Categories page, there are a lot of error with failing imports of css, js and map files, which makes the editor a bit useless.

Steps To Reproduce

  1. Open Developer Console (F12)
  2. Go to Catalog -> Categories

Expected Result No errors

Actual Result Errors

image

Container log:

2022/09/06 17:57:11 [notice] 29#29: *116 "^/static/version\d*/(.*)$" matches "/static/version1662486866/adminhtml/Magento/backend/en_US/Magento_PageBuilder/js/drag-drop/move-cont, request: "GET /static/version1662486866/adminhtml/Magento/backend/en_US/Magento_PageBuilder/js/drag-drop/move-content-type.js.map HTTP/2.0", host: "<omitted>"
<omitted> - - [06/Sep/2022:17:57:12 +0000] "GET /static/version1662486866/adminhtml/Magento/backend/en_US/Magento_PageBuilder/js/drag AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36" "-"

directory in container:

~/html/pub/static/adminhtml/Magento/backend/en_US/Magento_PageBuilder/js/drag-drop $ ls -lath
total 36K
drwxrwxrwx    2 app      app         4.0K Sep  6 17:08 .
drwxrwxrwx   20 app      app         4.0K Sep  6 17:08 ..
-rwxrwxrwx    1 app      app         1.9K Sep  6 17:08 drop-indicators.js
-rwxrwxrwx    1 app      app         1.6K Sep  6 17:08 matrix.js
-rwxrwxrwx    1 app      app         2.9K Sep  6 17:08 move-content-type.js
-rwxrwxrwx    1 app      app          788 Sep  6 17:08 registry.js
-rwxrwxrwx    1 app      app        10.0K Sep  6 17:08 sortable.js

Browser output when visiting link:

Unable to resolve the source file for 'adminhtml/Magento/backend/en_US/Magento_PageBuilder/js/stage-builder.js.map'
<pre>#1 Magento\Framework\App\StaticResource->launch() called at [vendor/magento/framework/App/Bootstrap.php:264]
#2 Magento\Framework\App\Bootstrap->run() called at [pub/static.php:13]
</pre>

I have tried:

Any ideas?

markshust commented 2 years ago

Are you noticing any issues? These are .map files, and I remember having some really odd issue with map files & Chrome in the past. I tend to just ignore these warnings in all my projects.

If you or someone else finds an issue with these and/or has a fix though, I'd gladly take it in.