When using Vue3 to develop a small program, refer to the copy plug-in, the error is as follows: index.js:2 ReferenceError: HTMLElement is not defined
at Object.t.node (index.js:2)
at listen (index.js:2)
at Clipboard.listenClick (index.js:2)
at new Clipboard (index.js:2)
at index.js:2
at new Promise ()
at toClipboard (index.js:2)
at _callee$ (index.js:2)
at tryCatch (vendors.js?t=wechat&s=1677809602001&v=116fc3ec80762a85d267642c0bd38bbf:2)
at Generator. (vendors.js?t=wechat&s=1677809602001&v=116fc3ec80762a85d267642c0bd38bbf:2)(env: Windows,mp,1.06.2301160; lib: 2.30.1)
When using Vue3 to develop a small program, refer to the copy plug-in, the error is as follows: index.js:2 ReferenceError: HTMLElement is not defined at Object.t.node (index.js:2) at listen (index.js:2) at Clipboard.listenClick (index.js:2) at new Clipboard (index.js:2) at index.js:2 at new Promise ()
at toClipboard (index.js:2)
at _callee$ (index.js:2)
at tryCatch (vendors.js?t=wechat&s=1677809602001&v=116fc3ec80762a85d267642c0bd38bbf:2)
at Generator. (vendors.js?t=wechat&s=1677809602001&v=116fc3ec80762a85d267642c0bd38bbf:2)(env: Windows,mp,1.06.2301160; lib: 2.30.1)