Home
Support Forums

Issue with puppeteer when building nextjs project

PLEASE help us help you by writing a good post!

Hi,

I am having troubles building my app on netlify. Locally the build “next build” works fine. but when I try to deploy a preview I have the next error:

ModuleNotFoundError: Module not found: Error: Can’t resolve ‘puppeteer’ in ‘/opt/build/repo/node_modules/chrome-aws-lambda/build’

Can you help me with this?

My site name: youthful-einstein-601ed1

Hi @AymenBenAmor,

Do you have puppeteer in your project’s package.json?