hyva-themes / magento2-hyva-admin

This module aims to make creating grids and forms in the Magento 2 adminhtml area joyful and fast.
https://hyva-themes.github.io/magento2-hyva-admin/
BSD 3-Clause "New" or "Revised" License
168 stars 39 forks source link

Error in setup:static-content:deploy #71

Open slackerzz opened 1 year ago

slackerzz commented 1 year ago

I'm using versione 1.1.18 with Magento 2.4.4-p2 and while deploying the static content using compact strategy with this command:

php bin/magento setup:static-content:deploy --ansi --no-interaction -f -s compact --jobs 4 --no-html-minify --theme Magento/backend en_US

I get this output:

Deploy using compact strategy
base/Magento/base/default               1461/1461           ============================ 100%   17 secs
adminhtml/Magento/base/default          1425/1425           ============================ 100%   21 secs
frontend/Magento/base/default           1284/1284           ============================ 100%   21 secs
adminhtml/Magento/backend/default       0/266               >--------------------------- 0%     1 sec
Error happened during deploy process: The contents from the "/var/www/html/pub/static/adminhtml/Magento/base/default/tailwind/components/forms.css" file can't be read. Warning!file_get_contents(/var/www/html/pub/static/adminhtml/Magento/base/default/tailwind/components/forms.css): Failed to open stream: No such fil
e or directory

It seems that magento tries to deploy the content of the tailwind directory.

I have found 2 workarounds:

Vinai commented 1 year ago

Thanks for the issue @slackerz! Back when I wrote the module I had no clue about tailwind, so I just followed the approach in hyva-themes. I agree the tailwind folder should not be inside of web. Moving it out should be fine.