Closed sprankhub closed 1 year ago
I noticed that pub/static/frontend/Magento/shoptheme/de_DE/moment.min.js
is already broken. Looked into the static content deployment output and found a lot of "Unclosed regex pattern at position" errors. This was caused by tedivm/jshrink
version 1.6.7
. Updating to 1.6.8
solved the issue. See https://github.com/tedious/JShrink/issues/135.
When I run
magepack bundle
, I get the following error:This happens after a big update from Magento 2.4.4-p4 to 2.4.6-p1 including Node package updates, especially a MagePack update from 2.8.0 to 2.11.2.
I debugged this and found out that the error happens for
lib/web/moment.js
. As soon as I remove the mappingmoment: 'moment'
from mymagepack.config.js
, the error is gone. I verified that the file exactly matches https://github.com/magento/magento2/blob/2.4.6-p1/lib/web/moment.js.Any idea?