Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

nuna's avatar
Level 1

How to solve Uncaught TypeError?

https://imgur.com/HMCbbnQ

How to solve the this error.This error is inside the plugin file

acquireContext: function(t, e) {
            "string" == typeof t ? t = document.getElementById(t) : t.length && (t = t[0]),
            t && t.canvas && (t = t.canvas);
            var i = t && t.getContext && t.getContext("2d");
            return this._ensureLoaded(),
            i && i.canvas === t ? (function(t, e) {
                var i = t.style
                  , n = t.getAttribute("height")
                  , a = t.getAttribute("width");
                if (t[_e] = {
                    initial: {
                        height: n,
                        width: a,
                        style: {
                            display: i.display,
                            height: i.height,
                            width: i.width
                        }
                    }
                },
                i.display = i.display || "block",
                null === a || "" === a) {
                    var o = De(t, "width");
                    void 0 !== o && (t.width = o)
                }
                if (null === n || "" === n)
                    if ("" === t.style.height)
                        t.height = t.width / (e.options.aspectRatio || 2);
                    else {
                        var r = De(t, "height");
                        void 0 !== o && (t.height = r)
                    }
            }(t, e),
            i) : null
        },

https://imgur.com/Mkj6CmB

The source from browser tab

0 likes
0 replies

Please or to participate in this conversation.