Property 'on' does not exist on type 'ClipboardJS' #958
-
Used GitHub Desktop and started with fresh copy of the SP repository. and started the server, I receive this error in the PowerShell-7 console from where I executed the above commands: ERROR in src/app/features/worklog/worklog-export/worklog-export.component.ts:213:15 - error TS2339: Property 'on' does not exist on type 'ClipboardJS'. 213 clipboard.on('success', (e: any) => { I use Visual Studio Code to open the SP directory then opened the woklog-export.component. There is no click.on , so the error message is correct. In Firefox when I visit http://localhost:4200/ the only thing on the page is "Cannot GET /". Then I commented on the clipboard function lines 212 to 220 and received a bunch of errors about missing semi-colons and missing commas. So I then temporarily removed those lines and received all the same error. So I then commented out line 22: Don't know what will fix this or what to try next, help would very much be appreciated. UPDATE Still at original error: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi there! As first step I'd try using 'yarn' as package manager. |
Beta Was this translation helpful? Give feedback.
Hi there! As first step I'd try using 'yarn' as package manager.