Problem/Motivation
FortyTwo appears broken and not compatible with Drupal 10 as it uses Underscore JS. This will result in the following error if you use placeholders;
placeholder.js?v=1.x:28 Uncaught ReferenceError: _ is not defined
at Object.show (placeholder.js?v=1.x:28:9)
at Object.render (placeholder.js?v=1.x:22:14)
at Object.init (placeholder.js?v=1.x:14:14)
at new Placeholder (placeholder.js?v=1.x:68:10)
at HTMLInputElement. (placeholder.js?v=1.x:73:41)
at Function.each (jquery.min.js?v=3.7.0:2:3129)
at ce.fn.init.each (jquery.min.js?v=3.7.0:2:1594)
at placeholder.js?v=1.x:73:22
at placeholder.js?v=1.x:77:3
show @ placeholder.js?v=1.x:28
render @ placeholder.js?v=1.x:22
init @ placeholder.js?v=1.x:14
Placeholder @ placeholder.js?v=1.x:68
(anonymous) @ placeholder.js?v=1.x:73
each @ jquery.min.js?v=3.7.0:2
each @ jquery.min.js?v=3.7.0:2
(anonymous) @ placeholder.js?v=1.x:73
(anonymous) @ placeholder.js?v=1.x:77
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | replace-underscore-js.patch | 658 bytes | rik wijnen |
Comments
Comment #2
rik wijnen commentedThis patch file should fix it.
Comment #3
batigolixComment #5
fabianderijkThanks, I've applied the patch and created a new 5.0.2 release