Error while loading shared libraries: libnss3
b5414 opened this issue · 3 comments
b5414 commented
I got
[pid=24][err] /tmp/chromium: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directorywith runtime: Node.js 16.x and this - sample code:
const playwright = require('playwright-aws-lambda');
exports.handler = async(event, context)=>{
let browser = null;
try{
browser = await playwright.launchChromium();
const context = await browser.newContext();
const page = await context.newPage();
await page.goto(event.url || 'https://example.com');
console.log('Page title: ', await page.title());
}catch(error){
throw error;
}finally{
if(browser){
await browser.close();
}
}
};fartbagxp commented
I'm running into the same issue. It doesn't look like 0.9.0 has been published even though it's been tagged with nodejs 16.x support.
austinkelleher commented
@b5414 @fartbagxp Apologies for not publishing! Total accident. Published playwright-aws-lambda@0.9.0. Can you try again?
fartbagxp commented
Yep, I ran with 0.9.0 and node16 in AWS's working for me.
Thanks!