youtube-uploader icon indicating copy to clipboard operation
youtube-uploader copied to clipboard

Cannot read properties of undefined (reading 'click'). While commenting.

Open MDxWARRIORxOP opened this issue 2 years ago • 4 comments

{ progress: 0, stage: 0 }
{ progress: 4, stage: 0 }
{ progress: 24, stage: 0 }
{ progress: 28, stage: 0 }
{ progress: 55, stage: 0 }
{ progress: 67, stage: 0 }
{ progress: 95, stage: 0 }
{ progress: 100, stage: 0 }
{ progress: 0, stage: 1 }
{ progress: 100, stage: 2 }
D:\Learning-Nodejs\YoutubeShortsGenerator\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:286
        throw new Error('Evaluation failed: ' + (0, util_js_1.getExceptionMessage)(exceptionDetails));
              ^

Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'click')
    at pptr://__puppeteer_evaluation_script__:1:13
    at ExecutionContext._ExecutionContext_evaluate (D:\Learning-Nodejs\YoutubeShortsGenerator\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:286:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async ExecutionContext.evaluate (D:\Learning-Nodejs\YoutubeShortsGenerator\node_modules\puppeteer\lib\cjs\puppeteer\common\ExecutionContext.js:117:16) 

Node.js v19.1.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

this error occurs while commenting.

MDxWARRIORxOP avatar Dec 27 '22 11:12 MDxWARRIORxOP

Should give context, how to reproduce, etc.

pierreminiggio avatar Dec 27 '22 18:12 pierreminiggio

sorry, heres my code:

await upload(config.YOUTUBE_CREDENTIALS, [video]).then((link) => {
    const comment1 = {
      link,
      comment:
        "e",
    };

    comment(config.YOUTUBE_CREDENTIALS, [comment1]).then(console.log);

    console.log("Shutting Down.");
  });

(uploading works)

MDxWARRIORxOP avatar Dec 28 '22 07:12 MDxWARRIORxOP

+1. Its going on because on upload the language does not change and cannot find the desired button

LevButkovskiy avatar Jan 31 '23 13:01 LevButkovskiy

update*, sorry on upload all its ok

LevButkovskiy avatar Jan 31 '23 14:01 LevButkovskiy