Vendor.js being removed on production build and causing 404 Sage 10

When running yarn build:production, my vendor.js file is not being created and then causing a 404. but on yarn:build it is displayed fine. I tried removing the dependency and enqueue in my setup.php but then it breaks a lot of working components JS.

The github issue doesn’t help much since I am not intentionally trying to remove it. It just seems to happen.

How can I get vendor.js to work on production build?

Can you share the repo to reproduce the issue? DM if it contains sensitive info.

This topic was automatically closed after 42 days. New replies are no longer allowed.