Problem with mautic:assets:generate after composer update from 4.4.11

Your software
My Mautic version is: 5.02
My PHP version is: 8.1.27
My Database type and version is: MariaDB
My installation is under subfolder, i manually correct .htaccess
It’s composer update from 4.4.11

Your problem
My problem is: Cant finish update/install procedure

These errors are showing in the log:

composer up
Loading composer repositories with package information                                     Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Package sensio/framework-extra-bundle is abandoned, you should avoid using it. Use Symfony instead.
Generating autoload files
116 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Deprecation Notice: Return type of Mautic\Composer\Plugin\Scaffold\Operations\ScaffoldFileCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /home/szczescie/mautic_szczescie/vendor/mautic/core-composer-scaffold/Operations/ScaffoldFileCollection.php:118
> npm ci --prefer-offline --no-audit
npm WARN deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
npm WARN deprecated stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN:

> mautic@0.0.0 postinstall
> node_modules/modernizr/bin/modernizr -c modernizr-config.json -d node_modules/modernizr/modernizr-mautic-dist.js & npm run build

(node:9437) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

> mautic@0.0.0 build
> webpack --mode production  --config webpack.config.js

Modernizr build saved to node_modules/modernizr/modernizr-mautic-dist.js
<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Unable to snapshot resolve dependencies
asset ckeditor.js 1.24 MiB [compared for emit] [minimized] [big] (name: main) 2 related assets
asset translations/bn.js 14.9 KiB [emitted] [minimized]
asset translations/th.js 14.7 KiB [emitted] [minimized]
asset translations/el.js 13.7 KiB [emitted] [minimized]
asset translations/ru.js 13.4 KiB [emitted] [minimized]
asset translations/bg.js 13.2 KiB [emitted] [minimized]
asset translations/uk.js 13 KiB [emitted] [minimized]
asset translations/sr.js 12 KiB [emitted] [minimized]
asset translations/ar.js 11.2 KiB [emitted] [minimized]
asset translations/he.js 10.5 KiB [emitted] [minimized]
asset translations/ja.js 10.1 KiB [emitted] [minimized]
asset translations/vi.js 9.89 KiB [emitted] [minimized]
asset translations/it.js 9.68 KiB [emitted] [minimized]
asset translations/lt.js 9.55 KiB [emitted] [minimized]
+ 56 assets
orphan modules 4.94 MiB [orphan] 1529 modules
runtime modules 919 bytes 5 modules
cacheable modules 4.87 MiB
  modules by path ./node_modules/@ckeditor/ 398 KiB 74 modules
  modules by path ./node_modules/color-convert/*.js 20.5 KiB
    ./node_modules/color-convert/index.js 1.67 KiB [built] [code generated]
    ./node_modules/color-convert/conversions.js 16.6 KiB [built] [code generated]
    ./node_modules/color-convert/route.js 2.2 KiB [built] [code generated]
  modules by path ./node_modules/css-loader/dist/runtime/*.js 3.84 KiB
    ./node_modules/css-loader/dist/runtime/cssWithMappingToString.js 2.27 KiB [built] [code generated]
    ./node_modules/css-loader/dist/runtime/api.js 1.57 KiB [built] [code generated]
  ./docroot/app/assets/libraries/ckeditor/src/ckeditor.ts + 1016 modules 4.45 MiB [built] [code generated]
  ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js 6.67 KiB [built] [code generated]
  ./node_modules/color-name/index.js 4.51 KiB [built] [code generated]
webpack 5.88.2 compiled successfully in 35642 ms

added 597 packages in 1m

73 packages are looking for funding
  run `npm fund` for details
> npx patch-package
patch-package 7.0.2
Applying patches...
at.js@1.5.4 ✔
chosen-js@1.8.7 ✔
> php bin/console mautic:assets:generate
The file /home/szczescie/mautic_szczescie/docroot/media/bundles/fmelfinder/css/elfinder.min.css does not exist. Generating production assets was not sucessful.
Script php bin/console mautic:assets:generate handling the generate-assets event returned with error code 1
Script @generate-assets was called via post-update-cmd

Steps I have tried to fix the problem: clear cache, run php bin/console mautic:assets:generate alone.

Mautic works fine, I wonder what I missing without proper run mautic:assets:generate…

1 Like