Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am getting the following error in the console when adding a Fivestar field:
Uncaught TypeError: Cannot read property 'prototype' of undefined
at fivestar.js?v=8.3.1:99
at fivestar.js?v=8.3.1:10
When I enable JS aggregation, it actually breaks the page display. I narrowed it down to a missing dependency on core/drupal.ajax
in fivestar.libraries.yml
.
Comment | File | Size | Author |
---|---|---|---|
#2 | cannot-read-property-prototype-undefined-2877499-2.patch | 399 bytes | yusufhm |
Comments
Comment #2
yusufhmAdding patch.
Comment #3
dbt102 CreditAttribution: dbt102 at Pineshore, BACnet Interest Group - Drupal commentedReviewing the patch for this now ...
Comment #4
dbt102 CreditAttribution: dbt102 at Pineshore, BACnet Interest Group - Drupal commentedI tried to replicate the error, by ading advagg module. Couldn't get it to break the page. Did not try to replicate the console error.
The patch applied OK though, and my test site seems to work just fine, so will commit in a bit.
Comment #6
dbt102 CreditAttribution: dbt102 at Pineshore, BACnet Interest Group - Drupal commentedComment #7
dbt102 CreditAttribution: dbt102 at Pineshore, BACnet Interest Group - Drupal commentedthanks for the patch @yusufhm