Closed riccardomel closed 1 year ago
Transferring this to acorn repo.
What version of acorn are you using?
Hi i use: "roots/acorn": "^2.1"
Hi any news or something i can try? @QWp6t
^2.1
isn't a specific version. v2.1.2? v2.1.1? v2.1.0? I'd suggest upgrading to the latest version of Acorn v3:
Try updating to Acorn v2.1.3 to see if that resolves it, otherwise upgrade to 3x and let us know if the bug persists with the latest version of Acorn.
Agreement
Describe the issue
Hi,
The issue is caused in : bundle('app')->enqueue();
Seems that the app bundle generated by bud.js is null instead an array, but no error is present during the build of assets: │ app │ ◉ js/runtime.01bfc1.js ✔ 1.05 kB │ ◉ css/app.92df17.css ✔ 56.29 kB │ ◉ js/app.00f750.js ✔ 115.27 kB
The stange part is that sometimes works fine, sometimes the errors appear.
Expected Behavior
Build works, and no error is generated on: bundle('app')->enqueue();
Actual Behavior
[08-Sep-2023 08:24:35 UTC] PHP Fatal error: Uncaught TypeError: Roots\Acorn\Assets\Bundle::mergeDependencies(): Argument roots/bud#2 must be of type array, null given, called in /var/www/XXX.it/releases/8/wp-content/themes/wordpress-evolve-theme/vendor/roots/acorn/src/Roots/Acorn/Assets/Concerns/Enqueuable.php on line 65 and defined in /var/www/XXX.it/releases/8/wp-content/themes/wordpress-evolve-theme/vendor/roots/acorn/src/Roots/Acorn/Assets/Concerns/Enqueuable.php:199
Steps To Reproduce
On Sage theme folder:
version
latest, but is present also in the previous releases
Logs
Configuration
Relevant .budfiles
composer.json