JamieCurnow / vue-clipboard3

Easily copy to clipboard in Vue 3
MIT License
129 stars 13 forks source link

ReferenceError: HTMLElement is not defined #9

Open w3cBug opened 1 year ago

w3cBug commented 1 year ago

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)