mautic/docker-mautic

On-the-fly asset generation is broken

TonyBogdanov opened this issue · 3 comments

When running the docker image of mautic5, the asset generation of media files fails for a lot of JS files and outputs their paths instead of their contents.

This issue was originally posted here: mautic/mautic#13076, but I think this is the proper place for it.

The cause is this:

find /opt/mautic/node_modules -mindepth 1 -maxdepth 1 -not \( -name 'jquery' -or -name 'vimeo-froogaloop2' \) | xargs rm -rf

All NPM packages are forcefully removed (apart from jquery and vimeo-froogaloop2) for some reason, but that breaks the on-the-fly generation of media/js/libraries.js for example.

Thanks for flagging up the issue @TonyBogdanov - will share it in the Docker channel on Slack and hopefully someone can jump in and take a look!