react-copy-to-clipboard icon indicating copy to clipboard operation
react-copy-to-clipboard copied to clipboard

TypeError: reselectPrevious is not a function when using it with a puppeteer

Open mcnaveen opened this issue 4 years ago • 2 comments

Getting this error when using it with a puppeteer

TypeError: reselectPrevious is not a function
    at copy (/media/ninja/New Volume/Dev/Node/automationb/node_modules/copy-to-clipboard/index.js:107:5)
    at run (/media/ninja/New Volume/Dev/NodeJS/automationb/index2.js:58:7)
    at process._tickCallback (internal/process/next_tick.js:68:7)

mcnaveen avatar Sep 29 '20 23:09 mcnaveen

Tried this in #106 (https://github.com/nkbt/react-copy-to-clipboard/issues/106#issuecomment-501888401)

Selection_315

But the same error happens.

mcnaveen avatar Sep 30 '20 01:09 mcnaveen

Tried this in #106 (https://github.com/nkbt/react-copy-to-clipboard/issues/106#issuecomment-501888401)

Selection_315

But the same error happens.

The solution I pitched was specifically for using Jest with a simulated DOM. I don't know what to do about your situation.

I'm muting this thread too.

trent-boyd avatar Sep 30 '20 01:09 trent-boyd