I am using puppeteer and chrome-aws-lambda to generate pdf in AWS Lambda, till recently it was working with nodejs 12.x, puppeteer v13.7.0 and chrome-aws-lambda v10.1.0.
Recently we updated nodejs to 16.x and puppeteer to 16.1.1 (Got Notification from AWS to update node version.)
Now this functionality has stopped working and I am getting following issue.
error: Error: ENOENT: no such file or directory, mkdtemp 'undefined\\temp\\puppeteer_dev_chrome_profile-XXXXXX' {errno: -4058, code: 'ENOENT', syscall: 'mkdtemp', path: 'undefined\\temp\\puppeteer_dev_chrome_profile-XXXXXX', stack: 'Error: ENOENT: no such file or directory, mkd…ned\\temp\\puppeteer_dev_chrome_profile-XXXXXX'', …}
code:
'ENOENT'
errno:
-4058
path:
'undefined\\temp\\puppeteer_dev_chrome_profile-XXXXXX'
syscall:
'mkdtemp'
message:
'ENOENT: no such file or directory, mkdtemp 'undefined\\temp\\