I came across this error on discuss post on leetcode.cn, it uses a monaco editor to type some text inputs for replies, for example, click the green button "reply the discussion" in this post, a monaco editor will be rendered but I can't focus or type anything. Because of the early return logic, this._codeium_monaco is not set, if the get method of monaco is called, it may throw an undefined error.
I came across this error on discuss post on leetcode.cn, it uses a monaco editor to type some text inputs for replies, for example, click the green button "reply the discussion" in this post, a monaco editor will be rendered but I can't focus or type anything. Because of the early return logic,
this._codeium_monaco
is not set, if the get method ofmonaco
is called, it may throw an undefined error.