- Status changed to Closed: outdated
over 1 year ago 5:59pm 22 May 2023 - π©πͺGermany stborchert
Thanks for testing.
Branch 2.2.x is not tested against Drupal 9 yet (and maybe will not be compatible to Drupal 9 at all) and is under heavy development. So it's better to not use it right now with Drupal 9.
I will update the core version requirement so it is not installable in Drupal 9 until I have tested and verified it. - π©πͺGermany MikeZ77
Thank you for the patch, it solves the latter TypeError ("$dialog_parent is not a function") but not the first one ("Cannot read properties of undefined (reading 'add_in_between'").
So I will go back to 2.0 and re-install 2.1 once I am upgrading to D10.
- Status changed to Needs work
over 1 year ago 2:32pm 26 May 2023 - π©πͺGermany stborchert
Oh sorry, I misread the issue and thought it only happens in 2.2.x. But you also said 2.1.x, so it should be fixed there.
Hi!
I had the same error and the patch worked but I also have another console error:
Uncaught TypeError: The element must be an instance of Element
I've been trying to find another patch or something to fix this but there's nothing available right now.
I did some debug for this and found that the problem is in the following function:
Drupal.ajax.bindAjaxLinksWithProgress = function (element)
I'm pasting here the full console error:
Uncaught TypeError: The element must be an instance of Element at u (once.js:122:11) at i (once.js:156:25) at a (once.js:280:5) at augmentedOnce (jquery.once.bc.js?v=9.5.9:26:12) at Drupal.ajax.bindAjaxLinksWithProgress (paragraphs_ee.admin.js?rwko5d:223:5) at Drupal.paragraphs_features.add_in_between.initParagraphsWidget (paragraphs_ee.admin.js?rwko5d:120:19) at paragraphs-features.add-in-between.js?rwko5d:123:53 at NodeList.forEach (<anonymous>) at paragraphs-features.add-in-between.js?rwko5d:122:58 at Array.forEach (<anonymous>)
Maybe it's a conflict with the once.js library?
- 14334bb9 committed on 2.1.x
Issue #3361500 by Sash1n: Uncaught JS TypeErrors after Update to Version...
- 14334bb9 committed on 2.1.x
- π§πͺBelgium JeroenT π§πͺ
This issue was committed so I guess we can close it now?
https://git.drupalcode.org/project/paragraphs_ee/-/commit/14334bb9ab0c5e... - Status changed to Fixed
over 1 year ago 10:45am 12 July 2023 Automatically closed - issue fixed for 2 weeks with no activity.