AssertionError: When a #lazy_builder callback is specified

Created on 14 September 2023, about 1 year ago
Updated 27 September 2023, about 1 year ago

Problem/Motivation

Drupal 10.1.3 - Getting the following error that is occurring on page which is using a view "block display" with no contextual arguments or relationships. So the viewsreference field does not need anything passed in via the content field "options" setting.
AssertionError: When a #lazy_builder callback is specified, no properties can exist; all properties must be generated by the #lazy_builder callback. You specified the following properties: #attached. in assert() (line 346 of /var/www/html/web/core/lib/Drupal/Core/Render/Renderer.php)

Steps to help isolate the issue

This issue is not occurring on pantheon but is occurring locally. I use ddev locally and it's using PHP 8.1.11 and on Pantheon, it's using PHP 8.1.23 (in case thats a factor)

Downgraded to Beta4 and there are no ERRORS.

Tried Beta5 and get the same error as Beta6 version.

The site has other pages using the same content type that work fine.

Hoping that maybe someone has also seen this issue or is able to duplicate the issue some how.

🐛 Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇨🇦Canada blainelang

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024