Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

duyn's avatar

duyn liked a comment+100 XP

2w ago

Laravel-mix is breaking ...

Webpack removed SizeFormatHelpers in v5.76.0. Your project probably pulled in the newer webpack automatically, which breaks the BuildOutputPlugin in older Mix releases.

Just bump laravel-mix to ^6.0.49 in your package.json. Jeffrey patched this exact issue a while back so you don't need to downgrade Webpack like the AI suggested.

Wipe your node_modules and package-lock.json, run npm install, and you should be good to go.

duyn's avatar

duyn wrote a reply+100 XP

2w ago

Laravel-mix is breaking ...

Thanks, I tried deleting package-lock.json and node_modules but it was still breaking. I ended up having to use my old package-lock.json in production to get it to build so there's some other updated dependency breaking it.

duyn's avatar

duyn started a new conversation+100 XP

2w ago

Laravel-mix is breaking ...

I have an older project still using Laravel-mix for building out the front-end. Just ran into this issue:

Removing node_modules and package-lock.json and rebuilding the front-end does not resolve this missing module.