Apify Discord Mirror

Updated last month

Crawlee support esm?

At a glance

The community member is having an issue integrating Nuxt3 in production mode. They are encountering a 500 error with the message "Cannot find module '/app/server/node_modules/puppeteer/lib/cjs/puppeteer/puppeteer.js'". The community member is using the PuppeteerCrawler module from the crawlee library, but they notice that the puppeteer library only has an ESM folder, not a CJS folder. The community member is unsure why the PuppeteerCrawler is still trying to run on CJS.

I try to integrate with Nuxt3, when i run on production mode it doesnt work

[nuxt] [request error] [unhandled] [500] Cannot find module '/app/server/node_modules/puppeteer/lib/cjs/puppeteer/puppeteer.js'

im import using module
import { Dataset, PuppeteerCrawler } from 'crawlee'

i check the node_modules/puppeteer/lib only esm folder there

why PuppeteerCrawler still want to run on cjs, any idea?
Add a reply
Sign up and join the conversation on Discord